nixpkgs/pkgs/by-name/ky/kyverno-chainsaw/package.nix

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

39 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-08 07:49:51 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kyverno-chainsaw";
2024-05-22 02:09:33 +00:00
version = "0.2.2";
2024-03-08 07:49:51 +00:00
src = fetchFromGitHub {
owner = "kyverno";
repo = "chainsaw";
rev = "v${version}";
2024-05-22 02:09:33 +00:00
hash = "sha256-jTrASkIcvHQN8TcxyfAeYVN50L2cgZXrKJRI8BN9Muk=";
2024-03-08 07:49:51 +00:00
};
2024-05-16 01:18:02 +00:00
vendorHash = "sha256-3x1HAt08Tbs56vaT2tBS//FPRn4JdFOI00XmlXMbs3w=";
2024-03-08 07:49:51 +00:00
ldflags = [
"-s" "-w"
"-X github.com/kyverno/chainsaw/pkg/version.BuildVersion=v${version}"
"-X github.com/kyverno/chainsaw/pkg/version.BuildHash=${version}"
"-X github.com/kyverno/chainsaw/pkg/version.BuildTime=1970-01-01_00:00:00"
];
doCheck = false; # requires running kubernetes
meta = {
changelog = "https://github.com/kyverno/chainsaw/releases/tag/v${version}";
description = "Declarative approach to test Kubernetes operators and controllers";
homepage = "https://kyverno.github.io/chainsaw/";
license = lib.licenses.asl20;
longDescription = ''
Chainsaw is meant to test Kubernetes operators work as expected by running a sequence of test steps for:
* Creating resources
* Asserting operators react (or not) the way they should
'';
mainProgram = "chainsaw";
maintainers = with lib.maintainers; [ Sanskarzz ];
};
}