From 7cdf59bedea8ca03a9e8aae64faa6c2318219f83 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 28 Jun 2021 07:57:40 -0700 Subject: [PATCH] vault-bin: wrap with gawk glibc Binary will shell out awk and getent --- pkgs/tools/security/vault/vault-bin.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/vault/vault-bin.nix b/pkgs/tools/security/vault/vault-bin.nix index 11175c3c889f..6ae4845346aa 100644 --- a/pkgs/tools/security/vault/vault-bin.nix +++ b/pkgs/tools/security/vault/vault-bin.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, unzip }: +{ lib, stdenv, fetchurl, unzip, makeWrapper, gawk, glibc }: let version = "1.7.3"; @@ -30,7 +30,7 @@ in stdenv.mkDerivation { src = sources.${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}"); - nativeBuildInputs = [ unzip ]; + nativeBuildInputs = [ makeWrapper unzip ]; sourceRoot = "."; @@ -41,6 +41,9 @@ in stdenv.mkDerivation { mv vault $out/bin 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 '';