Merge pull request #30041 from bricewge/patch-2

git-crypt: patch don't hard code path to git-crypt
This commit is contained in:
Joachim F 2017-10-06 07:58:09 +00:00 committed by GitHub
commit 1ad383fa7f

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