git-crypt: patch don't hard code path to git-crypt

Fix #30034
This commit is contained in:
bricewge 2017-10-02 23:39:08 +02:00 committed by Brice Waegeneire
parent 6dc9d21cc8
commit dbb8958fef

View file

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl makeWrapper ];
patchPhase = ''
substituteInPlace commands.cpp \
--replace '(escape_shell_arg(our_exe_path()))' '= "git-crypt"'
'';
installPhase = ''
make install PREFIX=$out
wrapProgram $out/bin/* --prefix PATH : ${gnupg1compat}/bin