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
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "pinniped";
|
|
version = "0.41.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "pinniped";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PCSRT3oYqfIsB5vWDIBV1tzRovDfrZOjLrINzos1RL0=";
|
|
};
|
|
|
|
subPackages = "cmd/pinniped";
|
|
|
|
vendorHash = "sha256-UYDmTwbT5odLMthGRqWuSr4G4oAU8zuWWRrMclIaY8g=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd pinniped \
|
|
--bash <($out/bin/pinniped completion bash) \
|
|
--fish <($out/bin/pinniped completion fish) \
|
|
--zsh <($out/bin/pinniped completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool to securely log in to your Kubernetes clusters";
|
|
mainProgram = "pinniped";
|
|
homepage = "https://pinniped.dev/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bpaulin ];
|
|
};
|
|
}
|