nixpkgs-suyu/pkgs/applications/networking/cluster/pinniped/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
921 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
2022-06-08 13:38:48 +02:00
buildGoModule rec{
pname = "pinniped";
2023-01-21 09:47:18 +01:00
version = "0.22.0";
2022-06-08 13:38:48 +02:00
src = fetchFromGitHub {
owner = "vmware-tanzu";
repo = "pinniped";
rev = "v${version}";
2023-01-21 09:47:18 +01:00
sha256 = "sha256-gi6uFJFP3hdHJqH9y7Q8tUGRJECPHxbajU5BJeBcJzo=";
2022-06-08 13:38:48 +02:00
};
subPackages = "cmd/pinniped";
2023-01-21 09:47:18 +01:00
vendorHash = "sha256-4N8HtBeGeu22Go63dV0WBdbheXylButu+M9vZL7qOcU=";
2022-06-08 13:38:48 +02:00
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)
'';
2022-06-08 13:38:48 +02:00
meta = with lib; {
description = "Tool to securely log in to your Kubernetes clusters";
homepage = "https://pinniped.dev/";
license = licenses.asl20;
2022-09-11 13:23:33 +02:00
maintainers = with maintainers; [ bpaulin ];
2022-06-08 13:38:48 +02:00
};
}