Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
installShellFiles,
|
|
testers,
|
|
kaniko,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "kaniko";
|
|
version = "1.25.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chainguard-dev";
|
|
repo = "kaniko";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-4P/NKwC32/hW4goUelnx28zY9bBD5Hbbz/y+S00rt7k=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/chainguard-dev/kaniko/pkg/version.version=${finalAttrs.version}"
|
|
];
|
|
|
|
excludedPackages = [ "hack/release_notes" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
doCheck = false; # requires docker, container-diff (unpackaged yet)
|
|
|
|
postInstall =
|
|
let
|
|
inherit (finalAttrs.meta) mainProgram;
|
|
in
|
|
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
for shell in bash fish zsh; do
|
|
$out/bin/${mainProgram} completion $shell > ${mainProgram}.$shell
|
|
installShellCompletion ${mainProgram}.$shell
|
|
done
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
|
versionCheckProgramArg = "version";
|
|
|
|
meta = {
|
|
description = "Tool to build container images from a Dockerfile, inside a container or Kubernetes cluster";
|
|
homepage = "https://github.com/chainguard-dev/kaniko";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [
|
|
jk
|
|
qjoly
|
|
];
|
|
mainProgram = "executor";
|
|
};
|
|
})
|