Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / kubernetes-controller-tools / default.nix
blobbf318108c430dc5ad2eae0aa34ac50e7f31ef073
1 { buildGoModule, lib, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "controller-tools";
5   version = "0.13.0";
7   src = fetchFromGitHub {
8     owner = "kubernetes-sigs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-strTBBpmG60H38WWLakIjZHVUgKC/ajS7ZEFDhZWnlo=";
12   };
14   patches = [ ./version.patch ];
16   vendorHash = "sha256-YQfMq0p3HfLgOjAk/anZpGx/fDnvovI3HtmYdKRKq5w=";
18   ldflags = [
19     "-s"
20     "-w"
21     "-X sigs.k8s.io/controller-tools/pkg/version.version=v${version}"
22   ];
24   doCheck = false;
26   subPackages = [
27     "cmd/controller-gen"
28     "cmd/type-scaffold"
29     "cmd/helpgen"
30   ];
32   meta = with lib; {
33     description = "Tools to use with the Kubernetes controller-runtime libraries";
34     homepage = "https://github.com/kubernetes-sigs/controller-tools";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ michojel ];
37   };