1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 20:36:27 +00:00
nixpkgs/pkgs/development/compilers/gcc-3.4/default.nix
Eelco Dolstra b5bfaa03f1 * GCC 3.4: pass --disable-multilib to make it build on x86_64.
svn path=/nixpkgs/trunk/; revision=9704
2007-11-16 13:08:20 +00:00

43 lines
891 B
Nix

{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
}:
assert langC;
with import ../../../lib;
stdenv.mkDerivation {
name = "gcc-3.4.6";
builder = ./builder.sh;
src = fetchurl {
url = mirror://gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2;
md5 = "4a21ac777d4b5617283ce488b808da7b";
};
patches = if noSysDirs then [./no-sys-dirs.patch] else [];
inherit noSysDirs profiledCompiler;
configureFlags = "
--disable-multilib
--with-system-zlib
--enable-languages=${
concatStrings (intersperse ","
( optional langC "c"
++ optional langCC "c++"
++ optional langF77 "f77"
)
)
}
";
passthru = { inherit langC langCC langF77; };
meta = {
homepage = "http://gcc.gnu.org/";
license = "GPL/LGPL";
description = "GNU Compiler Collection, 3.4.x";
};
}