kluctl: 2.26.0 -> 2.27.0

authored by R. Ryantm and committed by Nikolay Korotkiy 79320c69 bed266e6

+28 -17
+28 -17
pkgs/by-name/kl/kluctl/package.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 buildGoModule, 5 + buildPackages, 4 6 fetchFromGitHub, 7 + installShellFiles, 5 8 testers, 6 9 makeWrapper, 7 10 python310, 8 - kluctl, 9 11 }: 10 12 11 - buildGoModule rec { 13 + buildGoModule (finalAttrs: { 12 14 pname = "kluctl"; 13 - version = "2.26.0"; 15 + version = "2.27.0"; 14 16 15 17 src = fetchFromGitHub { 16 18 owner = "kluctl"; 17 19 repo = "kluctl"; 18 - rev = "v${version}"; 19 - hash = "sha256-qtntImc+fiRPMUHVM4A8d2e17zklV47CJ10M9A8oa7k="; 20 + tag = "v${finalAttrs.version}"; 21 + hash = "sha256-m/bfZb+sp0gqxfMdBr/gAOxfYHdrPwKRcJAqprkAkQE="; 20 22 }; 21 23 22 24 subPackages = [ "cmd" ]; 23 25 24 - vendorHash = "sha256-89VEYX8xBdV36hHNIaRP8JoXTEGXmgzL7iL/Y4+1mzA="; 26 + vendorHash = "sha256-TKMMMZ+8bv5kKgrHIp3CXmt4tpi5VejPpXv/oiX4M3c="; 25 27 26 28 ldflags = [ 27 29 "-s" 28 30 "-w" 29 - "-X main.version=v${version}" 31 + "-X main.version=v${finalAttrs.version}" 30 32 ]; 31 33 32 34 # Depends on docker 33 35 doCheck = false; 34 36 35 37 nativeBuildInputs = [ 38 + installShellFiles 36 39 makeWrapper 37 40 ]; 38 41 39 42 passthru.tests.version = testers.testVersion { 40 - package = kluctl; 41 - version = "v${version}"; 43 + package = finalAttrs.finalPackage; 44 + version = "v${finalAttrs.version}"; 42 45 }; 43 46 44 - postInstall = '' 45 - mv $out/bin/{cmd,kluctl} 46 - wrapProgram $out/bin/kluctl \ 47 + postInstall = 48 + let 49 + emulator = stdenv.hostPlatform.emulator buildPackages; 50 + in 51 + '' 52 + mv $out/bin/{cmd,kluctl} 53 + wrapProgram $out/bin/kluctl \ 47 54 --set KLUCTL_USE_SYSTEM_PYTHON 1 \ 48 55 --prefix PATH : '${lib.makeBinPath [ python310 ]}' 49 - ''; 56 + installShellCompletion --cmd kluctl \ 57 + --bash <(${emulator} $out/bin/kluctl completion bash) \ 58 + --fish <(${emulator} $out/bin/kluctl completion fish) \ 59 + --zsh <(${emulator} $out/bin/kluctl completion zsh) 60 + ''; 50 61 51 - meta = with lib; { 62 + meta = { 52 63 description = "Missing glue to put together large Kubernetes deployments"; 53 64 mainProgram = "kluctl"; 54 65 homepage = "https://kluctl.io/"; 55 - license = licenses.asl20; 56 - maintainers = with maintainers; [ 66 + license = lib.licenses.asl20; 67 + maintainers = with lib.maintainers; [ 57 68 sikmir 58 69 netthier 59 70 ]; 60 71 }; 61 - } 72 + })