blob: 7049c1fb1c5ad779358f2bbb99a8e778501345c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "setup-envtest";
version = "0.22.3";
src =
fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "controller-runtime";
rev = "v${finalAttrs.version}";
hash = "sha256-Al1MILraagj5b2AatweT3uGv/xpFYgLN/vEXCE/w630=";
}
+ "/tools/setup-envtest";
vendorHash = "sha256-1WxRIvzVUg+6XUWTAs6SVR12vGihUFkuwH1jH10Oa50=";
ldflags = [
"-s"
"-w"
];
__darwinAllowLocalNetworking = true;
meta = {
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${finalAttrs.version}/tools/setup-envtest";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ arikgrahl ];
mainProgram = "setup-envtest";
};
})
|