3
0
Fork 0
forked from mirrors/nixpkgs

* Move all gcc versions to development/compilers/gcc.

svn path=/nixpkgs/branches/stdenv-updates/; revision=32371
This commit is contained in:
Eelco Dolstra 2012-02-17 21:47:08 +00:00
parent 483f094acb
commit 6c2de318ad
70 changed files with 34 additions and 32 deletions

View file

@ -6,14 +6,16 @@
, texinfo ? null , texinfo ? null
}: }:
with import ../../../lib; with stdenv.lib;
# GCC-UPC apparently doesn't support GCov and friends. # GCC-UPC apparently doesn't support GCov and friends.
assert profiledCompiler == false; assert profiledCompiler == false;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "gcc-upc-4.0.3.5"; name = "gcc-upc-4.0.3.5";
builder = ../gcc-4.0/builder.sh;
builder = ../gcc/4.0/builder.sh;
src = fetchurl { src = fetchurl {
url = "ftp://ftp.intrepid.com/pub/upc/rls/upc-4.0.3.5/upc-4.0.3.5.src.tar.gz"; url = "ftp://ftp.intrepid.com/pub/upc/rls/upc-4.0.3.5/upc-4.0.3.5.src.tar.gz";
sha256 = "0afnz1bz0kknhl18205bbwncyza08983ivfaagj5yl7x3nwy7prv"; sha256 = "0afnz1bz0kknhl18205bbwncyza08983ivfaagj5yl7x3nwy7prv";
@ -30,13 +32,13 @@ stdenv.mkDerivation {
langF77 = false; langF77 = false;
langUPC = true; # unused langUPC = true; # unused
buildInputs = [gmp mpfr texinfo buildInputs =
[ gmp mpfr texinfo
# Bison is needed to build the parsers. # Bison is needed to build the parsers.
bison bison
# For some reason, `autoheader' and `m4' are needed.
# For some reason, `autoheader' and `m4' are needed. autoconf gnum4
autoconf gnum4]; ];
# Note: We use `--enable-maintainer-mode' so that `bison' is actually # Note: We use `--enable-maintainer-mode' so that `bison' is actually
# run when needed. # run when needed.

View file

@ -5,7 +5,7 @@
assert langC; assert langC;
with import ../../../lib; with stdenv.lib;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "gcc-3.4.6"; name = "gcc-3.4.6";

View file

@ -8,7 +8,7 @@
assert langC; assert langC;
with import ../../../lib; with stdenv.lib;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${name}-4.0.4"; name = "${name}-4.0.4";

View file

@ -10,7 +10,7 @@
assert langC || langFortran; assert langC || langFortran;
with import ../../../lib; with stdenv.lib;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${name}-4.1.2"; name = "${name}-4.1.2";

View file

@ -1733,15 +1733,15 @@ let
gcc = gcc46; gcc = gcc46;
gcc295 = wrapGCC (import ../development/compilers/gcc-2.95 { gcc295 = wrapGCC (import ../development/compilers/gcc/2.95 {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
}); });
gcc33 = wrapGCC (import ../development/compilers/gcc-3.3 { gcc33 = wrapGCC (import ../development/compilers/gcc/3.3 {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
}); });
gcc34 = wrapGCC (import ../development/compilers/gcc-3.4 { gcc34 = wrapGCC (import ../development/compilers/gcc/3.4 {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
}); });
@ -1750,30 +1750,30 @@ let
# expects a single digit after the dot. As a workaround, we feed # expects a single digit after the dot. As a workaround, we feed
# GCC with Texinfo 4.9. Stupid bug, hackish workaround. # GCC with Texinfo 4.9. Stupid bug, hackish workaround.
gcc40 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.0) { gcc40 = wrapGCC (makeOverridable (import ../development/compilers/gcc/4.0) {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
texinfo = texinfo49; texinfo = texinfo49;
profiledCompiler = true; profiledCompiler = true;
}); });
gcc41 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.1) { gcc41 = wrapGCC (makeOverridable (import ../development/compilers/gcc/4.1) {
inherit fetchurl noSysDirs gmp mpfr; inherit fetchurl noSysDirs gmp mpfr;
stdenv = overrideGCC stdenv gcc42; stdenv = overrideGCC stdenv gcc42;
texinfo = texinfo49; texinfo = texinfo49;
profiledCompiler = false; profiledCompiler = false;
}); });
gcc42 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.2) { gcc42 = wrapGCC (makeOverridable (import ../development/compilers/gcc/4.2) {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
profiledCompiler = false; profiledCompiler = false;
}); });
gcc43 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc-4.3) { gcc43 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc/4.3) {
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs; inherit stdenv fetchurl texinfo gmp mpfr noSysDirs;
profiledCompiler = true; profiledCompiler = true;
})); }));
gcc43_realCross = makeOverridable (import ../development/compilers/gcc-4.3) { gcc43_realCross = makeOverridable (import ../development/compilers/gcc/4.3) {
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs; inherit stdenv fetchurl texinfo gmp mpfr noSysDirs;
binutilsCross = binutilsCross; binutilsCross = binutilsCross;
libcCross = libcCross; libcCross = libcCross;
@ -1784,7 +1784,7 @@ let
}; };
gcc44_realCross = lib.addMetaAttrs { platforms = []; } gcc44_realCross = lib.addMetaAttrs { platforms = []; }
(makeOverridable (import ../development/compilers/gcc-4.4) { (makeOverridable (import ../development/compilers/gcc/4.4) {
inherit stdenv fetchurl texinfo gmp mpfr /* ppl cloogppl */ noSysDirs inherit stdenv fetchurl texinfo gmp mpfr /* ppl cloogppl */ noSysDirs
gettext which; gettext which;
binutilsCross = binutilsCross; binutilsCross = binutilsCross;
@ -1800,7 +1800,7 @@ let
gcc46 = gcc46_real; gcc46 = gcc46_real;
gcc45_realCross = lib.addMetaAttrs { platforms = []; } gcc45_realCross = lib.addMetaAttrs { platforms = []; }
(makeOverridable (import ../development/compilers/gcc-4.5) { (makeOverridable (import ../development/compilers/gcc/4.5) {
inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib
ppl cloogppl gettext which noSysDirs; ppl cloogppl gettext which noSysDirs;
binutilsCross = binutilsCross; binutilsCross = binutilsCross;
@ -1812,7 +1812,7 @@ let
}); });
gcc46_realCross = lib.addMetaAttrs { platforms = []; } gcc46_realCross = lib.addMetaAttrs { platforms = []; }
(makeOverridable (import ../development/compilers/gcc-4.6) { (makeOverridable (import ../development/compilers/gcc/4.6) {
inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib
cloog ppl gettext which noSysDirs; cloog ppl gettext which noSysDirs;
binutilsCross = binutilsCross; binutilsCross = binutilsCross;
@ -1869,13 +1869,13 @@ let
enableMultilib = true; enableMultilib = true;
})); }));
gcc44 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc-4.4) { gcc44 = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc/4.4) {
inherit fetchurl stdenv texinfo gmp mpfr /* ppl cloogppl */ inherit fetchurl stdenv texinfo gmp mpfr /* ppl cloogppl */
gettext which noSysDirs; gettext which noSysDirs;
profiledCompiler = true; profiledCompiler = true;
})); }));
gcc45_real = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc-4.5) { gcc45_real = lowPrio (wrapGCC (makeOverridable (import ../development/compilers/gcc/4.5) {
inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib perl inherit fetchurl stdenv texinfo gmp mpfr mpc libelf zlib perl
ppl cloogppl ppl cloogppl
gettext which noSysDirs; gettext which noSysDirs;
@ -1895,7 +1895,7 @@ let
})); }));
# A non-stripped version of GCC. # A non-stripped version of GCC.
gcc45_debug = lowPrio (wrapGCC (callPackage ../development/compilers/gcc-4.5 { gcc45_debug = lowPrio (wrapGCC (callPackage ../development/compilers/gcc/4.5 {
stripped = false; stripped = false;
inherit noSysDirs; inherit noSysDirs;
@ -1908,7 +1908,7 @@ let
profiledCompiler = if stdenv.system == "armv5tel-linux" then false else true; profiledCompiler = if stdenv.system == "armv5tel-linux" then false else true;
})); }));
gcc46_real = lowPrio (wrapGCC (callPackage ../development/compilers/gcc-4.6 { gcc46_real = lowPrio (wrapGCC (callPackage ../development/compilers/gcc/4.6 {
inherit noSysDirs; inherit noSysDirs;
cross = null; cross = null;
libcCross = null; libcCross = null;
@ -1920,7 +1920,7 @@ let
})); }));
# A non-stripped version of GCC. # A non-stripped version of GCC.
gcc46_debug = lowPrio (wrapGCC (callPackage ../development/compilers/gcc-4.6 { gcc46_debug = lowPrio (wrapGCC (callPackage ../development/compilers/gcc/4.6 {
stripped = false; stripped = false;
inherit noSysDirs; inherit noSysDirs;
@ -1930,10 +1930,10 @@ let
})); }));
gccApple = gccApple =
wrapGCC ( (if stdenv.system == "i686-darwin" then import ../development/compilers/gcc-apple else import ../development/compilers/gcc-apple64) { wrapGCC ( (if stdenv.system == "i686-darwin" then import ../development/compilers/gcc/4.2-apple32 else import ../development/compilers/gcc/4.2-apple64) {
inherit fetchurl stdenv noSysDirs; inherit fetchurl stdenv noSysDirs;
profiledCompiler = true; profiledCompiler = true;
}) ; });
gccupc40 = wrapGCCUPC (import ../development/compilers/gcc-upc-4.0 { gccupc40 = wrapGCCUPC (import ../development/compilers/gcc-upc-4.0 {
inherit fetchurl stdenv bison autoconf gnum4 noSysDirs; inherit fetchurl stdenv bison autoconf gnum4 noSysDirs;
@ -2094,7 +2094,7 @@ let
langGo = true; langGo = true;
}); });
ghdl = wrapGCC (import ../development/compilers/gcc-4.3 { ghdl = wrapGCC (import ../development/compilers/gcc/4.3 {
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs gnat; inherit stdenv fetchurl texinfo gmp mpfr noSysDirs gnat;
name = "ghdl"; name = "ghdl";
langVhdl = true; langVhdl = true;
@ -2105,7 +2105,7 @@ let
}); });
# Not officially supported version for ghdl # Not officially supported version for ghdl
ghdl_gcc44 = lowPrio (wrapGCC (import ../development/compilers/gcc-4.4 { ghdl_gcc44 = lowPrio (wrapGCC (import ../development/compilers/gcc/4.4 {
inherit stdenv fetchurl texinfo gmp mpfr noSysDirs gnat gettext which inherit stdenv fetchurl texinfo gmp mpfr noSysDirs gnat gettext which
ppl cloogppl; ppl cloogppl;
name = "ghdl"; name = "ghdl";