staruml: 6.3.0 -> 6.3.1 (#365170)
[NixPkgs.git] / pkgs / applications / networking / cluster / kubeval / default.nix
blobf9209c858ebc9ab1a461ced1d2ee44d1c956ae44
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5   fetchpatch,
6 }:
8 buildGoModule rec {
9   pname = "kubeval";
10   version = "0.16.1";
12   src = fetchFromGitHub {
13     owner = "instrumenta";
14     repo = "kubeval";
15     rev = "v${version}";
16     sha256 = "sha256-pwJOV7V78H2XaMiiJvKMcx0dEwNDrhgFHmCRLAwMirg=";
17   };
19   patches = [
20     # https://github.com/instrumenta/kubeval/pull/346
21     (fetchpatch {
22       name = "bump-golang.org/x/sys.patch";
23       url = "https://github.com/instrumenta/kubeval/commit/d64502b04d9e1b85fd3d5509049adb50f3e39954.patch";
24       sha256 = "sha256-S/lgwdykFLU2QZRW927fgCPxaIAMK3vSqmH08pXBQxM=";
25     })
26   ];
28   vendorHash = "sha256-R/vVrLsVSA9SGra4ytoHlQkPaIgQaj/XdivcQp8xjSM=";
30   doCheck = false;
32   meta = with lib; {
33     description = "Validate your Kubernetes configuration files";
34     mainProgram = "kubeval";
35     homepage = "https://github.com/instrumenta/kubeval";
36     license = licenses.asl20;
37     maintainers = with maintainers; [
38       johanot
39       nicknovitski
40     ];
41   };