Skip to content

Commit

Permalink
git-crypt: add runtime dependencies to PATH
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
phunehehe committed Oct 23, 2017
1 parent 24c61ca commit acbe3a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, openssl, gnupg1compat, makeWrapper }:
{ fetchFromGitHub, git, gnupg1compat, makeWrapper, openssl, stdenv }:

stdenv.mkDerivation rec {

Expand All @@ -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; {
Expand Down

0 comments on commit acbe3a8

Please sign in to comment.