nixpkgs/pkgs/development/compilers/gcc-apple/default.nix
Rob Vermaas 0aeeaafa55 * going even further back for gcc darwin
svn path=/nixpkgs/trunk/; revision=16189
2009-07-06 12:00:06 +00:00

23 lines
696 B
Nix

{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
, gmp ? null, mpfr ? null, bison ? null, flex ? null
}:
assert langC;
assert stdenv.isDarwin;
assert langF77 -> gmp != null;
stdenv.mkDerivation ({
name = "gcc-4.0.1-apple-5341";
builder = ./builder.sh;
src = fetchurl {
url = http://www.opensource.apple.com/darwinsource/tarballs/other/gcc-5341.tar.gz;
md5 = "a135f107ddc55b773b40dfff4f049640";
};
patches =
[./pass-cxxcpp.patch]
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
inherit noSysDirs langC langCC langF77 profiledCompiler;
} // (if langF77 then {buildInputs = [gmp mpfr bison flex];} else {}))