depot/third_party/nixpkgs/pkgs/development/tools/kubernetes-controller-tools/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

38 lines
874 B
Nix

{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "controller-tools";
version = "0.11.4";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cOXN6DZH8uiJNPRZrSr2QIsENZUQrreqYJB6OFALFeA=";
};
patches = [ ./version.patch ];
vendorHash = "sha256-nZyDoME5fVqRoAeLADjrQ7i6mVf3ujGN2+BUfrSHck8=";
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 ];
};
}