mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
2b87df597b
pinniped: 0.17.0 -> 0.19.0
36 lines
923 B
Nix
36 lines
923 B
Nix
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
|
|
|
buildGoModule rec{
|
|
pname = "pinniped";
|
|
version = "0.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "pinniped";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VGvT0jj2f4+jiaPQkebL0GE+W4U8+RfSEsGr2sNBu2Q=";
|
|
};
|
|
|
|
subPackages = "cmd/pinniped";
|
|
|
|
vendorSha256 = "sha256-7jQRUYJiRdYuAy3x+VPK4Nh5GF6ME7juloagm85oOVg=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
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";
|
|
homepage = "https://pinniped.dev/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bpaulin ];
|
|
};
|
|
}
|