about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-12-04 14:56:37 +0000
committerLudovic Courtès <ludo@gnu.org>2009-12-04 14:56:37 +0000
commit064aae6461971ed76ff4ed5bc8e043840592c04a (patch)
treebfe087be06eab4b9120724bb30d505577019277b
parentec6f4788bbaf377f32e5853962cb8f8fdaa96b4b (diff)
releaseTools.sourceTarball: Allow overriding of the bootstrap build inputs.
svn path=/nixpkgs/trunk/; revision=18804
-rw-r--r--pkgs/build-support/release/source-tarball.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/build-support/release/source-tarball.nix b/pkgs/build-support/release/source-tarball.nix
index 7cd3208d105c5..35e0758936388 100644
--- a/pkgs/build-support/release/source-tarball.nix
+++ b/pkgs/build-support/release/source-tarball.nix
@@ -16,6 +16,12 @@ let
     then ""
     else if src ? rev then "pre${toString src.rev}" else "";
 
+  # By default, provide all the GNU Build System as input.
+  bootstrapBuildInputs =
+    if (args ? bootstrapBuildInputs)
+    then args.bootstrapBuildInputs
+    else [ autoconf automake libtool ];
+
 in
 
 stdenv.mkDerivation (
@@ -71,7 +77,7 @@ stdenv.mkDerivation (
   {
     name = name + "-" + version + versionSuffix;
 
-    buildInputs = buildInputs ++ [autoconf automake libtool];
+    buildInputs = buildInputs ++ bootstrapBuildInputs;
     
     postHook = ''
       ensureDir $out/nix-support