nixpkgs/pkgs/development/compilers/gcc-apple/default.nix
Eelco Dolstra a0159dee8e * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl
URLs to http://nix.cs.uu.nl/dist/tarballs.  With content-addressable
  mirror support (r9190, NIXPKGS-70) this is no longer necessary:
  fetchurl will try to download from that location automatically.  So
  we can keep the original URLs.

svn path=/nixpkgs/trunk/; revision=9192
2007-08-24 12:32:36 +00:00

21 lines
542 B
Nix

{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
}:
assert langC;
assert stdenv.isDarwin;
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;
}