1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

optionally apply git glob patch to default git

svn path=/nixpkgs/trunk/; revision=17456
This commit is contained in:
Marc Weber 2009-09-26 23:33:05 +00:00
parent 13f467fc84
commit c641935190
2 changed files with 8 additions and 1 deletions

View file

@ -15,6 +15,7 @@ rec {
cpio tcl tk makeWrapper subversion;
svnSupport = getConfig ["git" "svnSupport"] false; # for git-svn support
guiSupport = getConfig ["git" "guiSupport"] false;
gitkGlobSupport = getConfig ["git" "gitkGlobSupport"] false;
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
};

View file

@ -3,6 +3,7 @@
, libxslt, tcl, tk, makeWrapper
, svnSupport, subversion, perlLibs
, guiSupport
, gitkGlobSupport
}:
# `git-svn' support requires Subversion and various Perl libraries.
@ -16,7 +17,12 @@ stdenv.mkDerivation rec {
sha256 = "fc7e4d6c4172c62c93d5e974019f7193b03c8bc0a1c6f3a9fcc1d0928b808d7a";
};
patches = [ ./docbook2texi.patch ];
patches = [ ./docbook2texi.patch ]
++ # adds possibility to highlight all changes to files matching a glob pattern
stdenv.lib.optional (guiSupport && gitkGlobSupport) (fetchurl {
url = "http://mawercer.de/~marc/git-jrnieder.patch";
sha256 = "187wf8chdjifwh3rrdc80nkak08jk7n74xq1bfzr2bhx2wicrv0x";
});
buildInputs = [curl openssl zlib expat gettext cpio makeWrapper]
++ # documentation tools