vault: wrap with gawk glibc
Binary will shell out awk and getent (cherry picked from commit 8161c0930504be8c30c51fa36374d751d3850b03)
This commit is contained in:
parent
3540e860f6
commit
2ff2298f07
|
@ -1,4 +1,8 @@
|
||||||
{ lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests }:
|
{ lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests
|
||||||
|
, makeWrapper
|
||||||
|
, gawk
|
||||||
|
, glibc
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "vault";
|
pname = "vault";
|
||||||
|
@ -15,13 +19,16 @@ buildGoPackage rec {
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||||
|
|
||||||
buildFlagsArray = [ "-tags=vault" "-ldflags=-s -w -X ${goPackagePath}/sdk/version.GitCommit=${src.rev}" ];
|
buildFlagsArray = [ "-tags=vault" "-ldflags=-s -w -X ${goPackagePath}/sdk/version.GitCommit=${src.rev}" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
echo "complete -C $out/bin/vault vault" > vault.bash
|
echo "complete -C $out/bin/vault vault" > vault.bash
|
||||||
installShellCompletion vault.bash
|
installShellCompletion vault.bash
|
||||||
|
|
||||||
|
wrapProgram $out/bin/vault \
|
||||||
|
--prefix PATH ${lib.makeBinPath [ gawk glibc ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.vault = nixosTests.vault;
|
passthru.tests.vault = nixosTests.vault;
|
||||||
|
|
Loading…
Reference in New Issue