2006-07-14 23:34:24 +01: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 23:34:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
2006-10-12 11:53:16 +01:00
|
|
|
assert stdenv.isDarwin;
|
2009-02-02 12:44:20 +00:00
|
|
|
assert langF77 -> gmp != null;
|
2006-07-14 23:34:24 +01:00
|
|
|
|
2009-02-02 12:44:20 +00:00
|
|
|
stdenv.mkDerivation ({
|
2006-07-14 23:34:24 +01:00
|
|
|
name = "gcc-4.0.1-apple-5341";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://www.opensource.apple.com/darwinsource/tarballs/other/gcc-5341.tar.gz;
|
2006-07-14 23:34:24 +01:00
|
|
|
md5 = "a135f107ddc55b773b40dfff4f049640";
|
|
|
|
};
|
|
|
|
patches =
|
|
|
|
[./pass-cxxcpp.patch]
|
|
|
|
++ (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 {}))
|