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