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