diff --git a/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix b/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix index e5e676059706..98cce6178335 100644 --- a/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-crypt/default.nix @@ -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