Files
nixpkgs/pkgs/by-name/ar/arkade/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "arkade";
version = "0.11.50";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
tag = version;
hash = "sha256-EM4bd++oDQBqcMIcjobvoNzzsQKgkCC0yekY1s/AoNM=";
};
env.CGO_ENABLED = 0;
nativeBuildInputs = [ installShellFiles ];
vendorHash = null;
# Exclude pkg/get: tests downloading of binaries which fail when sandbox=true
subPackages = [
"."
"cmd"
"pkg/apps"
"pkg/archive"
"pkg/config"
"pkg/env"
"pkg/helm"
"pkg/k8s"
"pkg/types"
];
ldflags = [
"-s"
"-w"
"-X github.com/alexellis/arkade/pkg.GitCommit=ref/tags/${version}"
"-X github.com/alexellis/arkade/pkg.Version=${version}"
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd arkade \
--bash <($out/bin/arkade completion bash) \
--zsh <($out/bin/arkade completion zsh) \
--fish <($out/bin/arkade completion fish)
'';
meta = with lib; {
homepage = "https://github.com/alexellis/arkade";
description = "Open Source Kubernetes Marketplace";
mainProgram = "arkade";
license = licenses.mit;
maintainers = with maintainers; [
welteki
techknowlogick
qjoly
];
};
}