forked from mirrors/nixpkgs
Merge pull request #191669 from LeSuisse/pinniped-smaller-binary
This commit is contained in:
commit
6fcc165328
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchFromGitHub, buildGoModule }:
|
||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
||||
|
||||
buildGoModule rec{
|
||||
pname = "pinniped";
|
||||
|
@ -15,6 +15,17 @@ buildGoModule rec{
|
|||
|
||||
vendorSha256 = "sha256-8ohyyciL1ORYOxPu64W0jXASTv+vVZR8StutzbF9N4Y=";
|
||||
|
||||
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/";
|
||||
|
|
Loading…
Reference in a new issue