git-crypt: add runtime dependencies to PATH

git-crypt won't work if git and git-crypt are not in PATH. This surfaced
after dbb8958. Test like this:

```
PATH= $(nix-build --no-out-link '<nixpkgs>' --attr git-crypt)/bin/git-crypt unlock
```
This commit is contained in:
Hoang Xuan Phu 2017-10-23 18:49:58 +08:00
parent 24c61cafa5
commit acbe3a869c

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, openssl, gnupg1compat, makeWrapper }:
{ fetchFromGitHub, git, gnupg1compat, makeWrapper, openssl, stdenv }:
stdenv.mkDerivation rec {
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
installPhase = ''
make install PREFIX=$out
wrapProgram $out/bin/* --prefix PATH : ${gnupg1compat}/bin
wrapProgram $out/bin/* --prefix PATH : $out/bin:${git}/bin:${gnupg1compat}/bin
'';
meta = with stdenv.lib; {