a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
38 lines
876 B
Nix
38 lines
876 B
Nix
{ buildGoModule, lib, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "controller-tools";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubernetes-sigs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-244o+QZ0BGVe8t8AWf1wU6VHgYyzkATpr5ZTbZezk10=";
|
|
};
|
|
|
|
patches = [ ./version.patch ];
|
|
|
|
vendorSha256 = "sha256-sVdSKu6TDGIDV2o+kuCvGCItbFe9MwlM2Qjiz8n2rZU=";
|
|
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ michojel ];
|
|
};
|
|
}
|