mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
git: Fix the "notSupported" scripts for "git send-email" and "git gui"
This commit is contained in:
parent
9365981409
commit
94812c9dd3
2 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue