2006-07-14 22:34:24 +00:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
2009-02-02 12:44:20 +00:00
|
|
|
, gmp ? null, mpfr ? null, bison ? null, flex ? null
|
2006-07-14 22:34:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
2006-10-12 10:53:16 +00:00
|
|
|
assert stdenv.isDarwin;
|
2009-02-02 12:44:20 +00:00
|
|
|
assert langF77 -> gmp != null;
|
2006-07-14 22:34:24 +00:00
|
|
|
|
2009-02-02 12:44:20 +00:00
|
|
|
stdenv.mkDerivation ({
|
2009-07-23 19:13:34 +00:00
|
|
|
name = "gcc-4.2.1-apple-5574";
|
2006-07-14 22:34:24 +00:00
|
|
|
builder = ./builder.sh;
|
2009-07-23 19:13:34 +00:00
|
|
|
src =
|
|
|
|
stdenv.lib.optional /*langC*/ true (fetchurl {
|
|
|
|
url = http://www.opensource.apple.com/tarballs/gcc_42/gcc_42-5574.tar.gz ;
|
|
|
|
sha256 = "0b76ef3cded7822e3c0ec430f9811b6bb84895055b683acd2df7f7253d745a50";
|
|
|
|
}) ++
|
|
|
|
stdenv.lib.optional langCC (fetchurl {
|
|
|
|
url = http://www.opensource.apple.com/tarballs/libstdcxx/libstdcxx-16.tar.gz ;
|
|
|
|
sha256 = "a7d8041e50e110f5a503e188a05cb217f0c99c51f248a0a1387cc07a0b6f167f";
|
|
|
|
}) ;
|
|
|
|
|
Enable parallel building of gcc, glibc, gmp, mpfr, ncurses, coreutils, perl, python, git, and qt4.
If a build expressions has set "enableParallelBuilding = true", then the
generic builder may utilize more than one CPU core to build that particular
expression. This feature works out of the box for GNU Make. Expressions that
use other build drivers like Boost.Jam or SCons have to specify appropriate
flags such as "-j${NIX_BUILD_CORES}" themselves.
svn path=/nixpkgs/trunk/; revision=23042
2010-08-08 18:51:42 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-07-23 19:13:34 +00:00
|
|
|
sourceRoot = "gcc_42-5574/";
|
2006-07-14 22:34:24 +00:00
|
|
|
patches =
|
2009-07-23 19:13:34 +00:00
|
|
|
[./pass-cxxcpp.patch ./debug_list.patch]
|
2006-07-14 22:34:24 +00:00
|
|
|
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
|
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
2009-02-02 12:44:20 +00:00
|
|
|
} // (if langF77 then {buildInputs = [gmp mpfr bison flex];} else {}))
|