nixpkgs/pkgs/by-name/ku/kuttl/package.nix
2024-12-04 23:18:28 +00:00

33 lines
855 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kuttl";
version = "0.20.0";
cli = "kubectl-kuttl";
src = fetchFromGitHub {
owner = "kudobuilder";
repo = "kuttl";
rev = "v${version}";
sha256 = "sha256-RZmylvf4q1JD8EAnxiFVfu9Q/ya1TXnbZhn4RguehII=";
};
vendorHash = "sha256-XdHgPN0gE1ie4kxqmZQgxlV+RUddu6OPbqWwIHAw6Hc=";
subPackages = [ "cmd/kubectl-kuttl" ];
ldflags = [
"-s"
"-w"
"-X github.com/kudobuilder/kuttl/pkg/version.gitVersion=${version}"
];
meta = with lib; {
description = "KUbernetes Test TooL (KUTTL) provides a declarative approach to testing production-grade Kubernetes operators";
homepage = "https://github.com/kudobuilder/kuttl";
license = licenses.asl20;
maintainers = with maintainers; [ diegolelis ];
mainProgram = "kubectl-kuttl";
};
}