mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
39 lines
874 B
Nix
39 lines
874 B
Nix
{ buildGoModule, lib, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "controller-tools";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubernetes-sigs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-strTBBpmG60H38WWLakIjZHVUgKC/ajS7ZEFDhZWnlo=";
|
|
};
|
|
|
|
patches = [ ./version.patch ];
|
|
|
|
vendorHash = "sha256-YQfMq0p3HfLgOjAk/anZpGx/fDnvovI3HtmYdKRKq5w=";
|
|
|
|
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 ];
|
|
};
|
|
}
|