diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-05-21 13:46:54 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-05-21 13:46:54 +0000 |
commit | 0b2906ca2872540d9c0af608398ce965dc1d17ea (patch) | |
tree | 1c4f16e0e7cd78ae8a70883e8256d49a74898a47 /pkgs/tools/misc/coreutils | |
parent | 000c2c51fdfffcd0b0cc91011d53080bf1f6513c (diff) | |
download | nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar.gz nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar.bz2 nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar.lz nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar.xz nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.tar.zst nixlib-0b2906ca2872540d9c0af608398ce965dc1d17ea.zip |
Add cross Coreutils.
svn path=/nixpkgs/trunk/; revision=21935
Diffstat (limited to 'pkgs/tools/misc/coreutils')
-rw-r--r-- | pkgs/tools/misc/coreutils/default.nix | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index d588c49e5c38..f4cf9fe98869 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -1,6 +1,10 @@ -{stdenv, fetchurl, aclSupport ? false, acl, perl, gmp}: +{ stdenv, fetchurl, aclSupport ? false, acl ? null, perl, gmp ? null +, cross ? null, gccCross ? null }: -stdenv.mkDerivation rec { +assert aclSupport -> acl != null; +assert cross != null -> gccCross != null; + +stdenv.mkDerivation (rec { name = "coreutils-8.4"; src = fetchurl { @@ -8,13 +12,17 @@ stdenv.mkDerivation rec { sha256 = "0zq11lykc7hfs9nsdnb8gqk354l82hswqj38607mvwj3b0zqvc4b"; }; - buildInputs = [ perl gmp ] ++ stdenv.lib.optional aclSupport acl; + buildNativeInputs = [ perl ]; + buildInputs = + stdenv.lib.optional (gmp != null) gmp + ++ stdenv.lib.optional aclSupport acl + ++ stdenv.lib.optional (gccCross != null) gccCross; # The tests are known broken on Cygwin # (http://thread.gmane.org/gmane.comp.gnu.core-utils.bugs/19025), # Darwin (http://thread.gmane.org/gmane.comp.gnu.core-utils.bugs/19351), # and {Open,Free}BSD. - doCheck = (stdenv ? glibc); + doCheck = (stdenv ? glibc) && (cross == null); meta = { homepage = http://www.gnu.org/software/coreutils/; @@ -32,3 +40,9 @@ stdenv.mkDerivation rec { maintainers = [ stdenv.lib.maintainers.ludo ]; }; } + +// + +(if cross != null + then { crossConfig = cross.config; } + else { })) |