1 { buildGoModule, lib, fetchFromGitHub }:
4 pname = "controller-tools";
7 src = fetchFromGitHub {
8 owner = "kubernetes-sigs";
11 sha256 = "sha256-G0jBQ12cpjfWGhXYppV9dB2n68bExi6ME9QbxXsUWvw=";
14 patches = [ ./version.patch ];
17 # fix wrong go line which go mod tidy complains about
18 # https://github.com/kubernetes-sigs/controller-tools/pull/881
19 substituteInPlace go.mod \
20 --replace-fail "go 1.20" "go 1.21"
23 vendorHash = "sha256-8XSMg/MII+HlsFuaOC6CK/jYiBXfeRZmLT7sW/ZN3Ts=";
28 "-X sigs.k8s.io/controller-tools/pkg/version.version=v${version}"
40 description = "Tools to use with the Kubernetes controller-runtime libraries";
41 homepage = "https://github.com/kubernetes-sigs/controller-tools";
42 changelog = "https://github.com/kubernetes-sigs/controller-tools/releases/tag/v${version}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ michojel ];