diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
commit | 5423cabbbf2b6dec5568f1ecabd288d5d9a642ec (patch) | |
tree | f316a6a921bfefd3a63bd4502c2eb50ff1644f67 /nixpkgs/pkgs/by-name/ky | |
parent | 46a88117a05c3469af5d99433af140c3de8ca088 (diff) | |
parent | 8aa81f34981add12aecada6c702ddbbd0375ca36 (diff) | |
download | nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.gz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.bz2 nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.lz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.xz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.zst nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/ky')
-rw-r--r-- | nixpkgs/pkgs/by-name/ky/kyverno-chainsaw/package.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ky/kyverno-chainsaw/package.nix b/nixpkgs/pkgs/by-name/ky/kyverno-chainsaw/package.nix new file mode 100644 index 000000000000..0853481fe1ed --- /dev/null +++ b/nixpkgs/pkgs/by-name/ky/kyverno-chainsaw/package.nix @@ -0,0 +1,38 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "kyverno-chainsaw"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "kyverno"; + repo = "chainsaw"; + rev = "v${version}"; + hash = "sha256-qn5EjddLVRhN90SICa39A28giXQ24Ol1nfbxNH5TXhc="; + }; + + vendorHash = "sha256-R9qaG19Vp+1a7AL0q8Cl1jN89cbXzLwbnN163WMWAEw="; + + 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 ]; + }; +} |