diff options
author | Craig Younkins <cyounkins@gmail.com> | 2018-12-14 15:49:09 -0500 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2018-12-14 21:49:09 +0100 |
commit | 921d046537f6d7f0fc0db07b7aa46be7e9df030b (patch) | |
tree | f279e29e0f6ed90bad8070fd2eb6b52202b14de0 /pkgs/applications | |
parent | 4ccba8b26d97b9352098c96928e58fd9ba0d8027 (diff) |
git: wrap git-credential-netrc to set PERL5LIB (#50992)
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix index 88704ef281eb..e218872cca30 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -133,7 +133,6 @@ stdenv.mkDerivation { # Install contrib stuff. mkdir -p $out/share/git cp -a contrib $out/share/git/ - ln -s "$out/share/git/contrib/credential/netrc/git-credential-netrc" $out/bin/ mkdir -p $out/share/emacs/site-lisp ln -s "$out/share/git/contrib/emacs/"*.el $out/share/emacs/site-lisp/ mkdir -p $out/etc/bash_completion.d @@ -178,6 +177,9 @@ stdenv.mkDerivation { for i in ${builtins.toString perlLibs}; do gitperllib=$gitperllib:$i/lib/perl5/site_perl done + + makeWrapper "$out/share/git/contrib/credential/netrc/git-credential-netrc" $out/bin/git-credential-netrc \ + --set PERL5LIB "$gitperllib" wrapProgram $out/libexec/git-core/git-cvsimport \ --set GITPERLLIB "$gitperllib" wrapProgram $out/libexec/git-core/git-add--interactive \ |