2005-04-22 14:14:55 +02:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-07-11 09:55:38 +02:00
|
|
|
name = "gcc-4.0.3";
|
2005-04-22 14:14:55 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/gcc-4.0.3.tar.bz2;
|
2006-07-11 09:55:38 +02:00
|
|
|
md5 = "6ff1af12c53cbb3f79b27f2d6a9a3d50";
|
2005-04-22 14:14:55 +02:00
|
|
|
};
|
|
|
|
# !!! apply only if noSysDirs is set
|
|
|
|
patches = [./no-sys-dirs.patch];
|
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
2006-03-10 17:12:46 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://gcc.gnu.org/";
|
|
|
|
license = "GPL/LGPL";
|
|
|
|
description = "GNU Compiler Collection, 4.0.x";
|
|
|
|
};
|
2005-04-22 14:14:55 +02:00
|
|
|
}
|