kaniko: 1.24.0 -> 1.25.0 (#418211)

authored by Aleksana and committed by GitHub d88142d2 7d13eedf

+25 -19
+25 -19
pkgs/by-name/ka/kaniko/package.nix
··· 6 6 installShellFiles, 7 7 testers, 8 8 kaniko, 9 + versionCheckHook, 9 10 }: 10 11 11 - buildGoModule rec { 12 + buildGoModule (finalAttrs: { 12 13 pname = "kaniko"; 13 - version = "1.24.0"; 14 + version = "1.25.0"; 14 15 15 16 src = fetchFromGitHub { 16 - owner = "GoogleContainerTools"; 17 + owner = "chainguard-dev"; 17 18 repo = "kaniko"; 18 - rev = "v${version}"; 19 - hash = "sha256-Y/sdbLcmBxUBU9io1RV/CnbuBN4I334BWUDeBoHFRm8="; 19 + rev = "v${finalAttrs.version}"; 20 + hash = "sha256-6WOczDWIbxFH9OLMQ+KirUEwPeiq3vFm3MdQQk9D+po="; 20 21 }; 21 22 22 23 vendorHash = null; ··· 24 25 ldflags = [ 25 26 "-s" 26 27 "-w" 27 - "-X github.com/GoogleContainerTools/kaniko/pkg/version.version=${version}" 28 + "-X github.com/chainguard-dev/kaniko/pkg/version.version=${finalAttrs.version}" 28 29 ]; 30 + 31 + excludedPackages = [ "hack/release_notes" ]; 29 32 30 33 nativeBuildInputs = [ installShellFiles ]; 31 34 32 35 doCheck = false; # requires docker, container-diff (unpackaged yet) 33 36 34 - postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 35 - for shell in bash fish zsh; do 36 - $out/bin/executor completion $shell > executor.$shell 37 - installShellCompletion executor.$shell 38 - done 39 - ''; 37 + postInstall = 38 + let 39 + inherit (finalAttrs.meta) mainProgram; 40 + in 41 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 42 + for shell in bash fish zsh; do 43 + $out/bin/${mainProgram} completion $shell > ${mainProgram}.$shell 44 + installShellCompletion ${mainProgram}.$shell 45 + done 46 + ''; 40 47 41 - passthru.tests.version = testers.testVersion { 42 - package = kaniko; 43 - version = version; 44 - command = "${kaniko}/bin/executor version"; 45 - }; 48 + doInstallCheck = true; 49 + nativeInstallCheckInputs = [ versionCheckHook ]; 50 + versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; 51 + versionCheckProgramArg = "version"; 46 52 47 53 meta = { 48 54 description = "Tool to build container images from a Dockerfile, inside a container or Kubernetes cluster"; 49 - homepage = "https://github.com/GoogleContainerTools/kaniko"; 55 + homepage = "https://github.com/chainguard-dev/kaniko"; 50 56 license = lib.licenses.asl20; 51 57 platforms = lib.platforms.linux; 52 58 maintainers = with lib.maintainers; [ ··· 55 61 ]; 56 62 mainProgram = "executor"; 57 63 }; 58 - } 64 + })