depot/third_party/nixpkgs/pkgs/development/tools/kubernetes-controller-tools/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

38 lines
876 B
Nix

{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "controller-tools";
version = "0.11.1";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mtAP8qRfSdt2koKs6LSI9iiXsyK92q1yWOC9zV8utFg=";
};
patches = [ ./version.patch ];
vendorSha256 = "sha256-9IGdsAqvi01Jf0FpxfL+O+LrDchh4dGgJX4JJIvL3vE=";
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 ];
};
}