git: allow applying patches by config

svn path=/nixpkgs/trunk/; revision=18897
This commit is contained in:
Marc Weber 2009-12-11 13:58:31 +00:00
parent 78a1418e6d
commit 0ceae8f6d1
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ rec {
svnSupport = getConfig ["git" "svnSupport"] false; # for git-svn support
guiSupport = getConfig ["git" "guiSupport"] false;
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
additionalPatches = getConfig ["git" "additionalPatches"] [];
};
gitGit = import ./git/git-git.nix {

View File

@ -3,6 +3,7 @@
, libxslt, tcl, tk, makeWrapper
, svnSupport, subversion, perlLibs
, guiSupport
, additionalPatches ? []
}:
# `git-svn' support requires Subversion and various Perl libraries.
@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
sha256 = "4d1aaf16b4c37c8412cceab09b009bfc0f8d7b9f30a809b82027ab7fa66fdbb3";
};
patches = [ ./docbook2texi.patch ];
patches = [ ./docbook2texi.patch ] ++ additionalPatches;
buildInputs = [curl openssl zlib expat gettext cpio makeWrapper]
++ # documentation tools