uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/tools/security/spire/default.nix
Normal file
37
pkgs/tools/security/spire/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "spire";
|
||||
version = "1.2.3";
|
||||
|
||||
outputs = [ "out" "agent" "server" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spiffe";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-k2kg1Wz0pPV9di2T1A1QvPxLqS5uZBvklNfBW72dQa0=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-J2D5hD0+0VY0sWi6O/McLIvK775aQiDqA+h24oYgRxY=";
|
||||
|
||||
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; [ jonringer fkautz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue