forked from mirrors/nixpkgs
Merge pull request #151814 from jonringer/add-spire
spire: init at 1.1.2
This commit is contained in:
commit
5a91f482ff
36
pkgs/tools/security/spire/default.nix
Normal file
36
pkgs/tools/security/spire/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "spire";
|
||||
version = "1.1.2";
|
||||
|
||||
outputs = [ "out" "agent" "server" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spiffe";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MX2kbdLj72S2WBceUW/3ps34Bcsf/VArK8RN4r13wQY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-ZRcXMNKhNY3W5fV9q/V7xsnODoG6KWHrzpWte9hx/Ms=";
|
||||
|
||||
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 = "github.com/spiffe/spire";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
|
@ -9713,6 +9713,11 @@ with pkgs;
|
|||
|
||||
spicy = callPackage ../development/tools/spicy { };
|
||||
|
||||
spire = callPackage ../tools/security/spire { };
|
||||
# to match naming of other package repositories
|
||||
spire-agent = spire.agent;
|
||||
spire-server = spire.server;
|
||||
|
||||
spoof-mac = python3Packages.callPackage ../tools/networking/spoof-mac { };
|
||||
|
||||
ssh-askpass-fullscreen = callPackage ../tools/networking/ssh-askpass-fullscreen { };
|
||||
|
|
Loading…
Reference in a new issue