vault-bin: wrap with gawk glibc

Binary will shell out awk and getent

(cherry picked from commit 2c402cc7606684c595375bf78faedec23ef9913f)
This commit is contained in:
Jonathan Ringer 2021-06-28 07:57:40 -07:00 committed by Jonathan Ringer
parent ceff17c474
commit 3540e860f6

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, unzip }: { lib, stdenv, fetchurl, unzip, makeWrapper, gawk, glibc }:
let let
version = "1.7.2"; version = "1.7.2";
@ -30,7 +30,7 @@ in stdenv.mkDerivation {
src = sources.${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}"); src = sources.${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}");
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ makeWrapper unzip ];
sourceRoot = "."; sourceRoot = ".";
@ -41,6 +41,9 @@ in stdenv.mkDerivation {
mv vault $out/bin mv vault $out/bin
echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault
wrapProgram $out/bin/vault \
--prefix PATH ${lib.makeBinPath [ gawk glibc ]}
runHook postInstall runHook postInstall
''; '';