mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
36 lines
921 B
Nix
36 lines
921 B
Nix
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
|
|
|
buildGoModule rec{
|
|
pname = "pinniped";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "pinniped";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gi6uFJFP3hdHJqH9y7Q8tUGRJECPHxbajU5BJeBcJzo=";
|
|
};
|
|
|
|
subPackages = "cmd/pinniped";
|
|
|
|
vendorHash = "sha256-4N8HtBeGeu22Go63dV0WBdbheXylButu+M9vZL7qOcU=";
|
|
|
|
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 ];
|
|
};
|
|
}
|