nixpkgs/pkgs/tools/security/spire/default.nix
Paul Meyer c908aa4ffd
treewide: remove jonringer as package maintainer
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
(cherry picked from commit fbe8538aa1)
2024-07-05 15:52:33 -04:00

38 lines
1.0 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "spire";
version = "1.9.5";
outputs = [ "out" "agent" "server" ];
src = fetchFromGitHub {
owner = "spiffe";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cn7ipY5dKcKSUTqOAqOf9KgdufMnk58WW4to9MfRL7g=";
};
vendorHash = "sha256-XWfo6NbADVRaMuemTrDgF2LQSpIe037z8el2CVzOJHI=";
subPackages = [ "cmd/spire-agent" "cmd/spire-server" ];
# Usually either the agent or server is needed for a given use case, but not both
postInstall = ''
mkdir -vp $agent/bin $server/bin
mv -v $out/bin/spire-agent $agent/bin/
mv -v $out/bin/spire-server $server/bin/
ln -vs $agent/bin/spire-agent $out/bin/spire-agent
ln -vs $server/bin/spire-server $out/bin/spire-server
'';
meta = with lib; {
description = "The SPIFFE Runtime Environment";
homepage = "https://github.com/spiffe/spire";
changelog = "https://github.com/spiffe/spire/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fkautz ];
};
}