159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
37 lines
936 B
Nix
37 lines
936 B
Nix
{ buildGoModule, lib, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "controller-tools";
|
|
version = "0.16.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubernetes-sigs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Txvzp8OcRTDCAB8nFrqj93X+Kk/sNPSSLOI07J3DwcM=";
|
|
};
|
|
|
|
vendorHash = "sha256-nwzXlsSG7JF145bf/AJZB1GbGJRHJC7Q73Jty6mHc/w=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X sigs.k8s.io/controller-tools/pkg/version.version=v${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [
|
|
"cmd/controller-gen"
|
|
"cmd/type-scaffold"
|
|
"cmd/helpgen"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tools to use with the Kubernetes controller-runtime libraries";
|
|
homepage = "https://github.com/kubernetes-sigs/controller-tools";
|
|
changelog = "https://github.com/kubernetes-sigs/controller-tools/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ michojel ];
|
|
};
|
|
}
|