nixpkgs/pkgs/development/compilers/gcc-4.1/default.nix
Eelco Dolstra 3a6754f6bb * gcc-4.1-temp -> gcc-4.1.
* Use real URLs.

svn path=/nixpkgs/trunk/; revision=6884
2006-10-27 23:14:41 +00:00

48 lines
1.2 KiB
Nix

{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
, staticCompiler ? false
}:
assert langC;
stdenv.mkDerivation {
name = "gcc-4.1.1";
builder = ./builder.sh;
src =
[(fetchurl {
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-core-4.1.1.tar.bz2;
md5 = "a1b189c98aa7d7f164036bbe89b9b2a2";
})] ++
(if /*langCC*/ true then [(fetchurl {
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-g++-4.1.1.tar.bz2;
md5 = "70c786bf8ca042e880a87fecb9e4dfcd";
})] else []) ++
(if langF77 then [(fetchurl {
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-fortran-4.1.1.tar.bz2;
md5 = "b088a28a1963d16bf505262f8bfd09db";
})] else []);
patches =
[./pass-cxxcpp.patch]
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
inherit noSysDirs langC langCC langF77 profiledCompiler staticCompiler;
configureFlags = "
--disable-multilib
--disable-libstdcxx-pch
--disable-libmudflap
--disable-libssp
";
makeFlags = if staticCompiler then "LDFLAGS=-static" else "";
meta = {
homepage = "http://gcc.gnu.org/";
license = "GPL/LGPL";
description = "GNU Compiler Collection, 4.1.x";
};
}