vault: wrap with gawk glibc
Binary will shell out awk and getent
This commit is contained in:
parent
7cdf59bede
commit
08ab2d3c2a
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
{ lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests }:
|
||||
{ lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests
|
||||
, makeWrapper
|
||||
, gawk
|
||||
, glibc
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "vault";
|
||||
|
@ -15,13 +19,16 @@ buildGoPackage rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
|
||||
buildFlagsArray = [ "-tags=vault" "-ldflags=-s -w -X ${goPackagePath}/sdk/version.GitCommit=${src.rev}" ];
|
||||
|
||||
postInstall = ''
|
||||
echo "complete -C $out/bin/vault vault" > vault.bash
|
||||
installShellCompletion vault.bash
|
||||
|
||||
wrapProgram $out/bin/vault \
|
||||
--prefix PATH ${lib.makeBinPath [ gawk glibc ]}
|
||||
'';
|
||||
|
||||
passthru.tests.vault = nixosTests.vault;
|
||||
|
|
Loading…
Reference in a new issue