2006-07-15 00:34:24 +02:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
2009-02-02 13:44:20 +01:00
|
|
|
, gmp ? null, mpfr ? null, bison ? null, flex ? null
|
2006-07-15 00:34:24 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
2006-10-12 12:53:16 +02:00
|
|
|
assert stdenv.isDarwin;
|
2009-02-02 13:44:20 +01:00
|
|
|
assert langF77 -> gmp != null;
|
2006-07-15 00:34:24 +02:00
|
|
|
|
2009-02-02 13:44:20 +01:00
|
|
|
stdenv.mkDerivation ({
|
2009-07-06 14:00:06 +02:00
|
|
|
name = "gcc-4.0.1-apple-5341";
|
2006-07-15 00:34:24 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2009-07-06 14:00:06 +02:00
|
|
|
url = http://www.opensource.apple.com/darwinsource/tarballs/other/gcc-5341.tar.gz;
|
|
|
|
md5 = "a135f107ddc55b773b40dfff4f049640";
|
2006-07-15 00:34:24 +02:00
|
|
|
};
|
|
|
|
patches =
|
|
|
|
[./pass-cxxcpp.patch]
|
|
|
|
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
|
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
2009-02-02 13:44:20 +01:00
|
|
|
} // (if langF77 then {buildInputs = [gmp mpfr bison flex];} else {}))
|