clusterctl: init at 1.0.1

zowoq cd8f237c 3db690fe

+43
+41
pkgs/applications/networking/cluster/clusterctl/default.nix
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 + 3 + buildGoModule rec { 4 + pname = "clusterctl"; 5 + version = "1.0.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "kubernetes-sigs"; 9 + repo = "cluster-api"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-EkBZZUkr1u0u75WDDFAdLLpS01+3+eyXpu4HRg2Q780="; 12 + }; 13 + 14 + vendorSha256 = "sha256-VO1Z4NUWrd4JuFYFg0a01psqoIM8ps3vKd0djR5OELU="; 15 + 16 + subPackages = [ "cmd/clusterctl" ]; 17 + 18 + nativeBuildInputs = [ installShellFiles ]; 19 + 20 + ldflags = let t = "sigs.k8s.io/cluster-api/version"; in [ 21 + "-X ${t}.gitMajor=${lib.versions.major version}" 22 + "-X ${t}.gitMinor=${lib.versions.minor version}" 23 + "-X ${t}.gitVersion=v${version}" 24 + ]; 25 + 26 + postInstall = '' 27 + # errors attempting to write config to read-only $HOME 28 + export HOME=$(mktemp -d) 29 + 30 + installShellCompletion --cmd clusterctl \ 31 + --bash <($out/bin/clusterctl completion bash) \ 32 + --zsh <($out/bin/clusterctl completion zsh) 33 + ''; 34 + 35 + meta = with lib; { 36 + description = "Kubernetes cluster API tool"; 37 + homepage = "https://cluster-api.sigs.k8s.io/"; 38 + license = licenses.asl20; 39 + maintainers = with maintainers; [ zowoq ]; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 2459 2459 2460 2460 clprover = callPackage ../applications/science/logic/clprover/clprover.nix { }; 2461 2461 2462 + clusterctl = callPackage ../applications/networking/cluster/clusterctl { }; 2463 + 2462 2464 coloredlogs = with python3Packages; toPythonApplication coloredlogs; 2463 2465 2464 2466 colord-kde = libsForQt5.callPackage ../tools/misc/colord-kde {};