Skip to content

Commit

Permalink
* Move all gcc versions to development/compilers/gcc.
Browse files Browse the repository at this point in the history
svn path=/nixpkgs/branches/stdenv-updates/; revision=32371
  • Loading branch information
edolstra committed Feb 17, 2012
1 parent 483f094 commit 6c2de31
Show file tree
Hide file tree
Showing 70 changed files with 34 additions and 32 deletions.
20 changes: 11 additions & 9 deletions pkgs/development/compilers/gcc-upc-4.0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
, texinfo ? null
}:

with import ../../../lib;
with stdenv.lib;

# GCC-UPC apparently doesn't support GCov and friends.
assert profiledCompiler == false;

stdenv.mkDerivation {
name = "gcc-upc-4.0.3.5";
builder = ../gcc-4.0/builder.sh;

builder = ../gcc/4.0/builder.sh;

src = fetchurl {
url = "ftp://ftp.intrepid.com/pub/upc/rls/upc-4.0.3.5/upc-4.0.3.5.src.tar.gz";
sha256 = "0afnz1bz0kknhl18205bbwncyza08983ivfaagj5yl7x3nwy7prv";
Expand All @@ -30,13 +32,13 @@ stdenv.mkDerivation {
langF77 = false;
langUPC = true; # unused

buildInputs = [gmp mpfr texinfo

# Bison is needed to build the parsers.
bison

# For some reason, `autoheader' and `m4' are needed.
autoconf gnum4];
buildInputs =
[ gmp mpfr texinfo
# Bison is needed to build the parsers.
bison
# For some reason, `autoheader' and `m4' are needed.
autoconf gnum4
];

# Note: We use `--enable-maintainer-mode' so that `bison' is actually
# run when needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

assert langC;

with import ../../../lib;
with stdenv.lib;

stdenv.mkDerivation {
name = "gcc-3.4.6";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

assert langC;

with import ../../../lib;
with stdenv.lib;

stdenv.mkDerivation {
name = "${name}-4.0.4";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

assert langC || langFortran;

with import ../../../lib;
with stdenv.lib;

stdenv.mkDerivation {
name = "${name}-4.1.2";
Expand Down
40 changes: 20 additions & 20 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1733,15 +1733,15 @@ let

gcc = gcc46;

gcc295 = wrapGCC (import ../development/compilers/gcc-2.95 {
gcc295 = wrapGCC (import ../development/compilers/gcc/2.95 {
inherit fetchurl stdenv noSysDirs;
});

gcc33 = wrapGCC (import ../development/compilers/gcc-3.3 {
gcc33 = wrapGCC (import ../development/compilers/gcc/3.3 {
inherit fetchurl stdenv noSysDirs;
});

gcc34 = wrapGCC (import ../development/compilers/gcc-3.4 {
gcc34 = wrapGCC (import ../development/compilers/gcc/3.4 {
inherit fetchurl stdenv noSysDirs;
});

Expand All @@ -1750,30 +1750,30 @@ let
# expects a single digit after the dot. As a workaround, we feed
# 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;
texinfo = texinfo49;
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;
stdenv = overrideGCC stdenv gcc42;
texinfo = texinfo49;
profiledCompiler = false;
});

gcc42 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.2) {
gcc42 = wrapGCC (makeOverridable (import ../development/compilers/gcc/4.2) {
inherit fetchurl stdenv noSysDirs;
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;
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;
binutilsCross = binutilsCross;
libcCross = libcCross;
Expand All @@ -1784,7 +1784,7 @@ let
};

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
gettext which;
binutilsCross = binutilsCross;
Expand All @@ -1800,7 +1800,7 @@ let
gcc46 = gcc46_real;

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
ppl cloogppl gettext which noSysDirs;
binutilsCross = binutilsCross;
Expand All @@ -1812,7 +1812,7 @@ let
});

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
cloog ppl gettext which noSysDirs;
binutilsCross = binutilsCross;
Expand Down Expand Up @@ -1869,13 +1869,13 @@ let
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 */
gettext which noSysDirs;
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
ppl cloogppl
gettext which noSysDirs;
Expand All @@ -1895,7 +1895,7 @@ let
}));

# 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;

inherit noSysDirs;
Expand All @@ -1908,7 +1908,7 @@ let
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;
cross = null;
libcCross = null;
Expand All @@ -1920,7 +1920,7 @@ let
}));

# 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;

inherit noSysDirs;
Expand All @@ -1930,10 +1930,10 @@ let
}));

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;
profiledCompiler = true;
}) ;
});

gccupc40 = wrapGCCUPC (import ../development/compilers/gcc-upc-4.0 {
inherit fetchurl stdenv bison autoconf gnum4 noSysDirs;
Expand Down Expand Up @@ -2094,7 +2094,7 @@ let
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;
name = "ghdl";
langVhdl = true;
Expand All @@ -2105,7 +2105,7 @@ let
});

# 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
ppl cloogppl;
name = "ghdl";
Expand Down

0 comments on commit 6c2de31

Please sign in to comment.