git: allow applying patches by config
svn path=/nixpkgs/trunk/; revision=18897
This commit is contained in:
parent
78a1418e6d
commit
0ceae8f6d1
@ -15,6 +15,7 @@ rec {
|
|||||||
svnSupport = getConfig ["git" "svnSupport"] false; # for git-svn support
|
svnSupport = getConfig ["git" "svnSupport"] false; # for git-svn support
|
||||||
guiSupport = getConfig ["git" "guiSupport"] false;
|
guiSupport = getConfig ["git" "guiSupport"] false;
|
||||||
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
|
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
|
||||||
|
additionalPatches = getConfig ["git" "additionalPatches"] [];
|
||||||
};
|
};
|
||||||
|
|
||||||
gitGit = import ./git/git-git.nix {
|
gitGit = import ./git/git-git.nix {
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
, libxslt, tcl, tk, makeWrapper
|
, libxslt, tcl, tk, makeWrapper
|
||||||
, svnSupport, subversion, perlLibs
|
, svnSupport, subversion, perlLibs
|
||||||
, guiSupport
|
, guiSupport
|
||||||
|
, additionalPatches ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# `git-svn' support requires Subversion and various Perl libraries.
|
# `git-svn' support requires Subversion and various Perl libraries.
|
||||||
@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "4d1aaf16b4c37c8412cceab09b009bfc0f8d7b9f30a809b82027ab7fa66fdbb3";
|
sha256 = "4d1aaf16b4c37c8412cceab09b009bfc0f8d7b9f30a809b82027ab7fa66fdbb3";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./docbook2texi.patch ];
|
patches = [ ./docbook2texi.patch ] ++ additionalPatches;
|
||||||
|
|
||||||
buildInputs = [curl openssl zlib expat gettext cpio makeWrapper]
|
buildInputs = [curl openssl zlib expat gettext cpio makeWrapper]
|
||||||
++ # documentation tools
|
++ # documentation tools
|
||||||
|
Loading…
x
Reference in New Issue
Block a user