1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/compilers/gcc-4.0/default.nix
Ludovic Courtès cee8b8ebac Add GNU Texinfo 4.9, use it to produce GCC 4.x documentation.
svn path=/nixpkgs/trunk/; revision=10805
2008-02-21 15:34:56 +00:00

53 lines
1.2 KiB
Nix

{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
, gmp ? null , mpfr ? null
, texinfo ? null
}:
assert langC;
with import ../../../lib;
stdenv.mkDerivation {
name = "gcc-4.0.4";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-4.0.4/gcc-4.0.4.tar.bz2;
sha256 = "0izwr8d69ld3a1yr8z94s7y7k861wi613mplys2c0bvdr58y1zgk";
};
patches =
optional noSysDirs [./no-sys-dirs.patch];
inherit noSysDirs langC langCC langF77 profiledCompiler;
buildInputs = []
++ (if gmp != null then [gmp] else [])
++ (if mpfr != null then [mpfr] else [])
++ (if texinfo != null then [texinfo] else [])
;
configureFlags = "
--disable-multilib
--disable-libstdcxx-pch
--disable-libmudflap
--with-system-zlib
--enable-languages=${
concatStrings (intersperse ","
( optional langC "c"
++ optional langCC "c++"
++ optional langF77 "f95"
)
)
}
${if stdenv.isi686 then "--with-arch=i686" else ""}
";
meta = {
homepage = "http://gcc.gnu.org/";
license = "GPL/LGPL";
description = "GNU Compiler Collection, 4.0.x";
};
}