nixpkgs/pkgs/by-name/se/setup-envtest/package.nix

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

31 lines
881 B
Nix
Raw Normal View History

2024-04-29 08:41:28 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "setup-envtest";
2024-10-07 15:15:40 +00:00
version = "0.19.0";
2024-04-29 08:41:28 +00:00
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "controller-runtime";
rev = "v${version}";
2024-10-07 15:15:40 +00:00
hash = "sha256-9AqZMiA+OIJD+inmeUc/lq57kV7L85jk1I4ywiSKirg=";
2024-04-29 08:41:28 +00:00
} + "/tools/setup-envtest";
2024-10-07 15:15:40 +00:00
vendorHash = "sha256-sn3HiKTpQzjrFTOVOGFJwoNpxU+XWgkWD2EOcPilePY=";
2024-04-29 08:41:28 +00:00
ldflags = [ "-s" "-w" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Tool that manages binaries for envtest, allowing the download of new binaries, listing installed and available ones, and cleaning up versions";
homepage = "https://github.com/kubernetes-sigs/controller-runtime/tree/v${version}/tools/setup-envtest";
license = licenses.asl20;
maintainers = with maintainers; [ arikgrahl ];
mainProgram = "setup-envtest";
};
}