2005-04-22 12:14:55 +00:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-10-30 23:58:42 +00:00
|
|
|
name = "gcc-4.0.2";
|
2005-04-22 12:14:55 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-01-30 16:04:03 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/gcc-4.0.2.tar.bz2;
|
2005-10-30 23:58:42 +00:00
|
|
|
md5 = "a659b8388cac9db2b13e056e574ceeb0";
|
2005-04-22 12:14:55 +00:00
|
|
|
};
|
|
|
|
# !!! apply only if noSysDirs is set
|
|
|
|
patches = [./no-sys-dirs.patch];
|
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
|
|
|
}
|