nixpkgs/pkgs/by-name/te/testkube/package.nix
2024-11-12 16:06:30 +00:00

36 lines
838 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "testkube";
version = "2.1.61";
src = fetchFromGitHub {
owner = "kubeshop";
repo = "testkube";
rev = "v${version}";
hash = "sha256-fCWnbUNEKVD5bKcowdgPDg35yRAM79MFapvViAzHX64=";
};
vendorHash = "sha256-l8RncoFKQC26D+5GLpGr5emCJASEiCQQ9K5PSAuMdPI=";
ldflags = [
"-X main.version=${version}"
"-X main.builtBy=nixpkgs"
"-X main.commit=v${version}"
"-X main.date=1970-01-01-00:00:01"
];
subPackages = [ "cmd/kubectl-testkube" ];
meta = {
description = "Kubernetes-native framework for test definition and execution";
homepage = "https://github.com/kubeshop/testkube/";
license = lib.licenses.mit;
mainProgram = "kubectl-testkube";
maintainers = with lib.maintainers; [ mathstlouis ];
};
}