diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 7cda4cffd71c..49d2df8fe2f6 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -39,7 +39,7 @@ rec { gitFull = appendToName "full" (git.override { svnSupport = true; guiSupport = true; - sendEmailSupport = stdenv.isDarwin == false; + sendEmailSupport = !stdenv.isDarwin; }); gitAnnex = lib.makeOverridable (import ./git-annex) { 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 46c23c87b60d..4ed5f78d6e0c 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation { postInstall = '' - notSupported(){ + notSupported() { echo -e "#\!/bin/sh\necho '`basename $1` not supported, $2'\nexit 1" > "$1" chmod +x $1 } @@ -72,11 +72,11 @@ stdenv.mkDerivation { for i in ${builtins.toString perlLibs} ${svn}; do gitperllib=$gitperllib:$i/lib/perl5/site_perl done - wrapProgram "$out/libexec/git-core/git-svn" \ - --set GITPERLLIB "$gitperllib" \ + wrapProgram $out/libexec/git-core/git-svn \ + --set GITPERLLIB "$gitperllib" \ --prefix PATH : "${svn}/bin" '' else '' # replace git-svn by notification script - notSupported $out/bin/git-svn "reinstall with config git = { svnSupport = true } set" + notSupported $out/libexec/git-core/git-svn "reinstall with config git = { svnSupport = true } set" '') + (if sendEmailSupport then @@ -85,10 +85,10 @@ stdenv.mkDerivation { for i in ${builtins.toString smtpPerlLibs}; do gitperllib=$gitperllib:$i/lib/perl5/site_perl done - wrapProgram "$out/libexec/git-core/git-send-email" \ + wrapProgram $out/libexec/git-core/git-send-email \ --set GITPERLLIB "$gitperllib" '' else '' # replace git-send-email by notification script - notSupported $out/bin/git-send-email "reinstall with config git = { sendEmailSupport = true } set" + notSupported $out/libexec/git-core/git-send-email "reinstall with config git = { sendEmailSupport = true } set" '') + ''# Install man pages and Info manual