mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
parent
9233723353
commit
a68c12d35b
@ -47,8 +47,7 @@ stdenv.mkDerivation {
|
||||
postInstall =
|
||||
''
|
||||
notSupported() {
|
||||
echo -e "#\!/bin/sh\necho '`basename $1` not supported, $2'\nexit 1" > "$1"
|
||||
chmod +x $1
|
||||
unlink $1 || true
|
||||
}
|
||||
|
||||
# Install git-subtree.
|
||||
@ -94,7 +93,7 @@ stdenv.mkDerivation {
|
||||
--set GITPERLLIB "$gitperllib" \
|
||||
--prefix PATH : "${svn}/bin" ''
|
||||
else '' # replace git-svn by notification script
|
||||
notSupported $out/libexec/git-core/git-svn "reinstall with config git = { svnSupport = true } set"
|
||||
notSupported $out/libexec/git-core/git-svn
|
||||
'')
|
||||
|
||||
+ (if sendEmailSupport then
|
||||
@ -106,7 +105,7 @@ stdenv.mkDerivation {
|
||||
wrapProgram $out/libexec/git-core/git-send-email \
|
||||
--set GITPERLLIB "$gitperllib" ''
|
||||
else '' # replace git-send-email by notification script
|
||||
notSupported $out/libexec/git-core/git-send-email "reinstall with config git = { sendEmailSupport = true } set"
|
||||
notSupported $out/libexec/git-core/git-send-email
|
||||
'')
|
||||
|
||||
+ stdenv.lib.optionalString withManual ''# Install man pages and Info manual
|
||||
@ -123,8 +122,7 @@ stdenv.mkDerivation {
|
||||
'' else ''
|
||||
# Don't wrap Tcl/Tk, replace them by notification scripts
|
||||
for prog in bin/gitk libexec/git-core/git-gui; do
|
||||
notSupported "$out/$prog" \
|
||||
"reinstall with config git = { guiSupport = true; } set"
|
||||
notSupported "$out/$prog"
|
||||
done
|
||||
'');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user