Merge pull request #215010 from SnO2WMaN/yamlfmt
close https://github.com/NixOS/nixpkgs/issues/215000
This commit is contained in:
commit
22a6958f46
3 changed files with 32 additions and 0 deletions
|
@ -13684,6 +13684,12 @@
|
|||
githubId = 57048005;
|
||||
name = "snicket2100";
|
||||
};
|
||||
sno2wman = {
|
||||
name = "SnO2WMaN";
|
||||
email = "me@sno2wman.net";
|
||||
github = "sno2wman";
|
||||
githubId = 15155608;
|
||||
};
|
||||
snpschaaf = {
|
||||
email = "philipe.schaaf@secunet.com";
|
||||
name = "Philippe Schaaf";
|
||||
|
|
24
pkgs/development/tools/yamlfmt/default.nix
Normal file
24
pkgs/development/tools/yamlfmt/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "yamlfmt";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oTdBFWISOfaz4ZDbJmyxtaKrjo9DVNJ5N7Qxnu7SwZA=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-QRY6mYtrMvjUqXJOOvHL0b0OQ28320UwV8HL4fXpcNQ=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An extensible command line tool or library to format yaml files.";
|
||||
homepage = "https://github.com/google/yamlfmt";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ sno2wman ];
|
||||
};
|
||||
}
|
|
@ -13605,6 +13605,8 @@ with pkgs;
|
|||
|
||||
yamlfix = with python3Packages; toPythonApplication yamlfix;
|
||||
|
||||
yamlfmt = callPackage ../development/tools/yamlfmt {};
|
||||
|
||||
yamllint = with python3Packages; toPythonApplication yamllint;
|
||||
|
||||
yamlpath = callPackage ../development/tools/yamlpath { };
|
||||
|
|
Loading…
Reference in a new issue