1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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