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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
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
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2018-10-02 22:56:42 +00:00
|
|
|
description = "Validate your Kubernetes configuration files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/instrumenta/kubeval";
|
2018-10-02 22:56:42 +00:00
|
|
|
license = licenses.asl20;
|
2020-05-07 07:10:35 +00:00
|
|
|
maintainers = with maintainers; [ johanot nicknovitski ];
|
2018-10-02 22:56:42 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|