nixpkgs/pkgs/tools/security/spire/default.nix

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

38 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2021-12-22 19:29:55 +00:00
buildGoModule rec {
2021-12-22 19:29:55 +00:00
pname = "spire";
2022-09-07 19:49:47 +00:00
version = "1.4.1";
2021-12-22 19:29:55 +00:00
outputs = [ "out" "agent" "server" ];
src = fetchFromGitHub {
owner = "spiffe";
repo = pname;
rev = "v${version}";
2022-09-07 19:49:47 +00:00
sha256 = "sha256-YUsam6dIm5jDjUQ8U9puG3jvrNWCS0epaOvwo4hjixc=";
2021-12-22 19:29:55 +00:00
};
2022-08-10 23:38:53 +00:00
vendorSha256 = "sha256-EZWoMSBxdvnrdBmSrRYf4+2d1LCka7oUIhRAW+2n7CU=";
2021-12-22 19:29:55 +00:00
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";
2022-03-09 20:58:56 +00:00
homepage = "https://github.com/spiffe/spire";
2022-03-18 06:08:04 +00:00
changelog = "https://github.com/spiffe/spire/releases/tag/v${version}";
2021-12-22 19:29:55 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ jonringer fkautz ];
2021-12-22 19:29:55 +00:00
};
}