* Sync with the trunk.

svn path=/nixpkgs/branches/stdenv-updates/; revision=30852
This commit is contained in:
Eelco Dolstra
2011-12-12 16:54:35 +00:00
320 changed files with 4058 additions and 2823 deletions

View File

@@ -25,6 +25,7 @@ let inherit (builtins) head tail trace; in
else if (hasSuffixHack ".tar.xz" s) then "tar.xz"
else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) then "zip"
else if (hasSuffixHack "-cvs-export" s) then "cvs-dir"
else if (hasSuffixHack "-git-export" s) then "git-dir"
else if (hasSuffixHack ".nar.bz2" s) then "narbz2"
else if (hasSuffixHack ".rpm" s) then "rpm"
@@ -228,6 +229,10 @@ let inherit (builtins) head tail trace; in
cp -r '${s}' .
cd \$(basename ${s})
chmod u+rwX -R .
" else if (archiveType s) == "git-dir" then "
cp -r '${s}' .
cd \$(basename ${s})
chmod u+rwX -R .
" else if (archiveType s) == "dir" then "
cp -r '${s}' .
cd \$(basename ${s})

View File

@@ -1,6 +1,6 @@
source $stdenv/setup
ensureDir $out/bin
for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip dsymutil; do
for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip dsymutil libtool; do
ln -s /usr/bin/$i $out/bin/
done

View File

@@ -6,16 +6,15 @@
, buildInputs ? []
, name ? "source-tarball"
, version ? "0"
, versionSuffix ?
if officialRelease
then ""
else if src ? rev then "pre${toString src.rev}" else ""
, src, stdenv, autoconf, automake, libtool
, ... } @ args:
let
versionSuffix =
if officialRelease
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)