nixpkgs/pkgs/applications/networking/cluster/kubeval/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
952 B
Nix
Raw Normal View History

2021-12-01 12:08:02 +00:00
{ lib
, fetchFromGitHub
, buildGoModule
2022-11-04 03:25:50 +00:00
, fetchpatch
2021-12-01 12:08:02 +00:00
}:
2018-10-02 22:56:42 +00:00
2019-12-03 11:28:36 +00:00
buildGoModule rec {
pname = "kubeval";
2021-12-01 12:08:02 +00:00
version = "0.16.1";
2018-10-02 22:56:42 +00:00
src = fetchFromGitHub {
2019-12-03 11:28:36 +00:00
owner = "instrumenta";
2018-10-02 22:56:42 +00:00
repo = "kubeval";
2021-12-01 12:08:02 +00:00
rev = "v${version}";
sha256 = "sha256-pwJOV7V78H2XaMiiJvKMcx0dEwNDrhgFHmCRLAwMirg=";
2018-10-02 22:56:42 +00:00
};
2022-11-04 03:25:50 +00:00
patches = [
# https://github.com/instrumenta/kubeval/pull/346
(fetchpatch {
name = "bump-golang.org/x/sys.patch";
url = "https://github.com/instrumenta/kubeval/commit/d64502b04d9e1b85fd3d5509049adb50f3e39954.patch";
sha256 = "sha256-S/lgwdykFLU2QZRW927fgCPxaIAMK3vSqmH08pXBQxM=";
})
];
vendorSha256 = "sha256-R/vVrLsVSA9SGra4ytoHlQkPaIgQaj/XdivcQp8xjSM=";
2019-12-03 11:28:36 +00:00
doCheck = false;
meta = with lib; {
2018-10-02 22:56:42 +00:00
description = "Validate your Kubernetes configuration files";
homepage = "https://github.com/instrumenta/kubeval";
2018-10-02 22:56:42 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ johanot nicknovitski ];
2018-10-02 22:56:42 +00:00
};
}