depot/third_party/nixpkgs/pkgs/by-name/se/setup-envtest/package.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

30 lines
881 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "setup-envtest";
version = "0.19.0";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "controller-runtime";
rev = "v${version}";
hash = "sha256-9AqZMiA+OIJD+inmeUc/lq57kV7L85jk1I4ywiSKirg=";
} + "/tools/setup-envtest";
vendorHash = "sha256-sn3HiKTpQzjrFTOVOGFJwoNpxU+XWgkWD2EOcPilePY=";
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";
};
}