anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / networking / cluster / kubeval / default.nix
blob8fb1e68b020692d16b763e3765c5594a587c9697
1 { lib
2 , fetchFromGitHub
3 , buildGoModule
4 , fetchpatch
5 }:
7 buildGoModule rec {
8   pname = "kubeval";
9   version = "0.16.1";
11   src = fetchFromGitHub {
12     owner = "instrumenta";
13     repo = "kubeval";
14     rev = "v${version}";
15     sha256 = "sha256-pwJOV7V78H2XaMiiJvKMcx0dEwNDrhgFHmCRLAwMirg=";
16   };
18   patches = [
19     # https://github.com/instrumenta/kubeval/pull/346
20     (fetchpatch {
21       name = "bump-golang.org/x/sys.patch";
22       url = "https://github.com/instrumenta/kubeval/commit/d64502b04d9e1b85fd3d5509049adb50f3e39954.patch";
23       sha256 = "sha256-S/lgwdykFLU2QZRW927fgCPxaIAMK3vSqmH08pXBQxM=";
24     })
25   ];
27   vendorHash = "sha256-R/vVrLsVSA9SGra4ytoHlQkPaIgQaj/XdivcQp8xjSM=";
29   doCheck = false;
31   meta = with lib; {
32     description = "Validate your Kubernetes configuration files";
33     mainProgram = "kubeval";
34     homepage = "https://github.com/instrumenta/kubeval";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ johanot nicknovitski ];
37   };