* g77 -> gfortran throughout. Got rid of the separate expressions/builders for Fortran. Tested by building Octave with gfortran 4.3.

svn path=/nixpkgs/branches/stdenv-updates/; revision=14978

+96 -352
+2 -2
pkgs/applications/science/math/scilab/default.nix
··· 1 - {stdenv, fetchurl, lib, g77 2 , ncurses 3 , Xaw3d, withXaw3d ? false 4 #, withPVMlib ? false ··· 20 md5 = "17a7a6aa52918f33d96777a0dc423658"; 21 }; 22 23 - buildInputs = [g77 ncurses] 24 ++ lib.optionals withGtk [gtk] 25 ++ lib.optionals withOCaml [ocaml] 26 ++ lib.optionals withX [x11]
··· 1 + {stdenv, fetchurl, lib, gfortran 2 , ncurses 3 , Xaw3d, withXaw3d ? false 4 #, withPVMlib ? false ··· 20 md5 = "17a7a6aa52918f33d96777a0dc423658"; 21 }; 22 23 + buildInputs = [gfortran ncurses] 24 ++ lib.optionals withGtk [gtk] 25 ++ lib.optionals withOCaml [ocaml] 26 ++ lib.optionals withX [x11]
+10 -3
pkgs/build-support/gcc-wrapper/default.nix
··· 5 # stdenv.mkDerivation provides a wrapper that sets up the right environment 6 # variables so that the compiler and the linker just "work". 7 8 - { name ? "gcc-wrapper", stdenv, nativeTools, nativeLibc, nativePrefix ? "" 9 , gcc ? null, libc ? null, binutils ? null, shell ? "" 10 }: 11 ··· 13 assert !nativeTools -> gcc != null && binutils != null; 14 assert !nativeLibc -> libc != null; 15 16 - let gccVersion = (builtins.parseDrvName gcc.name).version; in 17 18 stdenv.mkDerivation { 19 - name = name + (if gcc != null && gccVersion != "" then "-" + gccVersion else ""); 20 21 builder = ./builder.sh; 22 setupHook = ./setup-hook.sh;
··· 5 # stdenv.mkDerivation provides a wrapper that sets up the right environment 6 # variables so that the compiler and the linker just "work". 7 8 + { name ? "", stdenv, nativeTools, nativeLibc, nativePrefix ? "" 9 , gcc ? null, libc ? null, binutils ? null, shell ? "" 10 }: 11 ··· 13 assert !nativeTools -> gcc != null && binutils != null; 14 assert !nativeLibc -> libc != null; 15 16 + let 17 + 18 + gccVersion = (builtins.parseDrvName gcc.name).version; 19 + gccName = (builtins.parseDrvName gcc.name).name; 20 + 21 + in 22 23 stdenv.mkDerivation { 24 + name = 25 + (if name != "" then name else gccName + "-wrapper") + 26 + (if gcc != null && gccVersion != "" then "-" + gccVersion else ""); 27 28 builder = ./builder.sh; 29 setupHook = ./setup-hook.sh;
+1 -1
pkgs/development/compilers/gcc-3.3/builder.sh
··· 26 if test -n "$langCC"; then 27 langs="$langs,c++" 28 fi 29 - if test -n "$langF77"; then 30 langs="$langs,f77" 31 fi 32
··· 26 if test -n "$langCC"; then 27 langs="$langs,c++" 28 fi 29 + if test -n "$langFortran"; then 30 langs="$langs,f77" 31 fi 32
+2 -2
pkgs/development/compilers/gcc-3.3/default.nix
··· 1 { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 }: 4 5 assert langC; ··· 13 url = http://ftp.gnu.org/gnu/gcc/gcc-3.3.6/gcc-3.3.6.tar.bz2; 14 md5 = "6936616a967da5a0b46f1e7424a06414"; 15 }; 16 - inherit noSysDirs langC langCC langF77; 17 }
··· 1 { stdenv, fetchurl, noSysDirs 2 + , langC ? true, langCC ? true, langFortran ? false 3 }: 4 5 assert langC; ··· 13 url = http://ftp.gnu.org/gnu/gcc/gcc-3.3.6/gcc-3.3.6.tar.bz2; 14 md5 = "6936616a967da5a0b46f1e7424a06414"; 15 }; 16 + inherit noSysDirs langC langCC langFortran; 17 }
+9 -6
pkgs/development/compilers/gcc-4.0/default.nix
··· 1 { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 , profiledCompiler ? false 4 , gmp ? null , mpfr ? null 5 , texinfo ? null 6 }: 7 8 assert langC; ··· 10 with import ../../../lib; 11 12 stdenv.mkDerivation { 13 - name = "gcc-4.0.4"; 14 builder = ./builder.sh; 15 src = fetchurl { 16 url = ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-4.0.4/gcc-4.0.4.tar.bz2; 17 sha256 = "0izwr8d69ld3a1yr8z94s7y7k861wi613mplys2c0bvdr58y1zgk"; ··· 20 patches = 21 optional noSysDirs [./no-sys-dirs.patch]; 22 23 - inherit noSysDirs langC langCC langF77 profiledCompiler; 24 25 buildInputs = [gmp mpfr texinfo]; 26 ··· 31 --with-system-zlib 32 --enable-languages=${ 33 concatStrings (intersperse "," 34 - ( optional langC "c" 35 - ++ optional langCC "c++" 36 - ++ optional langF77 "f95" 37 ) 38 ) 39 }
··· 1 { stdenv, fetchurl, noSysDirs 2 + , langC ? true, langCC ? true, langFortran ? false 3 , profiledCompiler ? false 4 , gmp ? null , mpfr ? null 5 , texinfo ? null 6 + , name ? "gcc" 7 }: 8 9 assert langC; ··· 11 with import ../../../lib; 12 13 stdenv.mkDerivation { 14 + name = "${name}-4.0.4"; 15 + 16 builder = ./builder.sh; 17 + 18 src = fetchurl { 19 url = ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-4.0.4/gcc-4.0.4.tar.bz2; 20 sha256 = "0izwr8d69ld3a1yr8z94s7y7k861wi613mplys2c0bvdr58y1zgk"; ··· 23 patches = 24 optional noSysDirs [./no-sys-dirs.patch]; 25 26 + inherit noSysDirs langC langCC langFortran profiledCompiler; 27 28 buildInputs = [gmp mpfr texinfo]; 29 ··· 34 --with-system-zlib 35 --enable-languages=${ 36 concatStrings (intersperse "," 37 + ( optional langC "c" 38 + ++ optional langCC "c++" 39 + ++ optional langFortran "f95" 40 ) 41 ) 42 }
+11 -9
pkgs/development/compilers/gcc-4.1/default.nix
··· 1 { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 , profiledCompiler ? false 4 , staticCompiler ? false 5 , gmp ? null 6 , mpfr ? null 7 , texinfo ? null 8 }: 9 10 - assert langC || langF77; 11 12 with import ../../../lib; 13 14 stdenv.mkDerivation { 15 - name = "gcc-4.1.2"; 16 - builder = if langF77 then ./fortran.sh else ./builder.sh; 17 18 src = 19 optional /*langC*/ true (fetchurl { ··· 24 url = mirror://gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2; 25 sha256 = "1qm2izcxna10jai0v4s41myki0xkw9174qpl6k1rnrqhbx0sl1hc"; 26 }) ++ 27 - optional langF77 (fetchurl { 28 url = mirror://gnu/gcc/gcc-4.1.2/gcc-fortran-4.1.2.tar.bz2; 29 sha256 = "0772dhmm4gc10420h0d0mfkk2sirvjmjxz8j0ywm8wp5qf8vdi9z"; 30 }); ··· 42 --with-system-zlib 43 --enable-languages=${ 44 concatStrings (intersperse "," 45 - ( optional langC "c" 46 - ++ optional langCC "c++" 47 - ++ optional langF77 "fortran" 48 ) 49 ) 50 } ··· 53 54 makeFlags = if staticCompiler then "LDFLAGS=-static" else ""; 55 56 - passthru = { inherit langC langCC langF77; }; 57 58 meta = { 59 homepage = "http://gcc.gnu.org/";
··· 1 { stdenv, fetchurl, noSysDirs 2 + , langC ? true, langCC ? true, langFortran ? false 3 , profiledCompiler ? false 4 , staticCompiler ? false 5 , gmp ? null 6 , mpfr ? null 7 , texinfo ? null 8 + , name ? "gcc" 9 }: 10 11 + assert langC || langFortran; 12 13 with import ../../../lib; 14 15 stdenv.mkDerivation { 16 + name = "${name}-4.1.2"; 17 + 18 + builder = ./builder.sh; 19 20 src = 21 optional /*langC*/ true (fetchurl { ··· 26 url = mirror://gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2; 27 sha256 = "1qm2izcxna10jai0v4s41myki0xkw9174qpl6k1rnrqhbx0sl1hc"; 28 }) ++ 29 + optional langFortran (fetchurl { 30 url = mirror://gnu/gcc/gcc-4.1.2/gcc-fortran-4.1.2.tar.bz2; 31 sha256 = "0772dhmm4gc10420h0d0mfkk2sirvjmjxz8j0ywm8wp5qf8vdi9z"; 32 }); ··· 44 --with-system-zlib 45 --enable-languages=${ 46 concatStrings (intersperse "," 47 + ( optional langC "c" 48 + ++ optional langCC "c++" 49 + ++ optional langFortran "fortran" 50 ) 51 ) 52 } ··· 55 56 makeFlags = if staticCompiler then "LDFLAGS=-static" else ""; 57 58 + passthru = { inherit langC langCC langFortran; }; 59 60 meta = { 61 homepage = "http://gcc.gnu.org/";
-86
pkgs/development/compilers/gcc-4.1/fortran.sh
··· 1 - source $stdenv/setup 2 - 3 - 4 - export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy 5 - mkdir $NIX_FIXINC_DUMMY 6 - 7 - export X_CFLAGS="-I${gmp}/include -I${mpfr}/include -L${gmp}/lib -L${mpfr}/lib"; 8 - 9 - # libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad 10 - # Thing. 11 - export CPP="gcc -E" 12 - 13 - 14 - if test "$noSysDirs" = "1"; then 15 - 16 - if test -e $NIX_GCC/nix-support/orig-libc; then 17 - 18 - # Figure out what extra flags to pass to the gcc compilers 19 - # being generated to make sure that they use our glibc. 20 - extraCFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 21 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 22 - 23 - # Use *real* header files, otherwise a limits.h is generated 24 - # that does not include Glibc's limits.h (notably missing 25 - # SSIZE_MAX, which breaks the build). 26 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 27 - 28 - else 29 - # Hack: support impure environments. 30 - extraCFlags="-isystem /usr/include" 31 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 32 - export NIX_FIXINC_DUMMY=/usr/include 33 - fi 34 - 35 - extraCFlags="-g0 $extraCFlags" 36 - extraLDFlags="--strip-debug $extraLDFlags" 37 - 38 - export NIX_EXTRA_CFLAGS=$extraCFlags 39 - for i in $extraLDFlags; do 40 - export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i" 41 - done 42 - 43 - makeFlagsArray=( \ 44 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 45 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 46 - LIMITS_H_TEST=true \ 47 - X_CFLAGS="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 48 - LDFLAGS="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 49 - LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 50 - ) 51 - fi 52 - 53 - 54 - preConfigure=preConfigure 55 - preConfigure() { 56 - # Perform the build in a different directory. 57 - mkdir ../build 58 - cd ../build 59 - configureScript=../$sourceRoot/configure 60 - } 61 - 62 - 63 - postInstall=postInstall 64 - postInstall() { 65 - # Remove precompiled headers for now. They are very big and 66 - # probably not very useful yet. 67 - find $out/include -name "*.gch" -exec rm -rf {} \; -prune 68 - 69 - # Remove `fixincl' to prevent a retained dependency on the 70 - # previous gcc. 71 - rm -rf $out/libexec/gcc/*/*/install-tools 72 - 73 - # Get rid of some "fixed" header files 74 - rm -rf $out/lib/gcc/*/*/include/root 75 - } 76 - 77 - 78 - if test -z "$staticCompiler"; then 79 - if test -z "$profiledCompiler"; then 80 - buildFlags="bootstrap $buildFlags" 81 - else 82 - buildFlags="profiledbootstrap $buildFlags" 83 - fi 84 - fi 85 - 86 - genericBuild
···
+13 -11
pkgs/development/compilers/gcc-4.2/default.nix
··· 1 { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 , profiledCompiler ? false 4 , staticCompiler ? false 5 , texinfo ? null 6 }: 7 8 - assert langC; 9 - 10 - with import ../../../lib; 11 12 let version = "4.2.4"; in 13 14 stdenv.mkDerivation { 15 - name = "gcc-${version}"; 16 builder = ./builder.sh; 17 18 src = ··· 24 url = "mirror://gnu/gcc/gcc-${version}/gcc-g++-${version}.tar.bz2"; 25 sha256 = "0gq8ikci0qqgck71qqlhfld6zkwn9179x6z15vdd9blkdig55nxg"; 26 }) ++ 27 - optional langF77 (fetchurl { 28 url = "mirror://gnu/gcc/gcc-${version}/gcc-fortran-${version}.tar.bz2"; 29 sha256 = "013yqiqhdavgxzjryvylgf3lcnknmw89fx41jf2v4899srn0bhkg"; 30 }); ··· 35 36 inherit noSysDirs profiledCompiler staticCompiler; 37 38 - buildInputs = [texinfo]; 39 40 configureFlags = " 41 --disable-multilib ··· 43 --with-system-zlib 44 --enable-languages=${ 45 concatStrings (intersperse "," 46 - ( optional langC "c" 47 - ++ optional langCC "c++" 48 - ++ optional langF77 "f77" 49 ) 50 ) 51 } ··· 54 55 NIX_EXTRA_LDFLAGS = if staticCompiler then "-static" else ""; 56 57 - passthru = { inherit langC langCC langF77; }; 58 59 meta = { 60 homepage = "http://gcc.gnu.org/";
··· 1 { stdenv, fetchurl, noSysDirs 2 + , langC ? true, langCC ? true, langFortran ? false 3 , profiledCompiler ? false 4 , staticCompiler ? false 5 + , gmp ? null 6 + , mpfr ? null 7 , texinfo ? null 8 + , name ? "gcc" 9 }: 10 11 + with stdenv.lib; 12 13 let version = "4.2.4"; in 14 15 stdenv.mkDerivation { 16 + name = "${name}-${version}"; 17 + 18 builder = ./builder.sh; 19 20 src = ··· 26 url = "mirror://gnu/gcc/gcc-${version}/gcc-g++-${version}.tar.bz2"; 27 sha256 = "0gq8ikci0qqgck71qqlhfld6zkwn9179x6z15vdd9blkdig55nxg"; 28 }) ++ 29 + optional langFortran (fetchurl { 30 url = "mirror://gnu/gcc/gcc-${version}/gcc-fortran-${version}.tar.bz2"; 31 sha256 = "013yqiqhdavgxzjryvylgf3lcnknmw89fx41jf2v4899srn0bhkg"; 32 }); ··· 37 38 inherit noSysDirs profiledCompiler staticCompiler; 39 40 + buildInputs = [gmp mpfr texinfo]; 41 42 configureFlags = " 43 --disable-multilib ··· 45 --with-system-zlib 46 --enable-languages=${ 47 concatStrings (intersperse "," 48 + ( optional langC "c" 49 + ++ optional langCC "c++" 50 + ++ optional langFortran "fortran" 51 ) 52 ) 53 } ··· 56 57 NIX_EXTRA_LDFLAGS = if staticCompiler then "-static" else ""; 58 59 + passthru = { inherit langC langCC langFortran; }; 60 61 meta = { 62 homepage = "http://gcc.gnu.org/";
-73
pkgs/development/compilers/gcc-4.2/fortran.nix
··· 1 - { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 - , profiledCompiler ? false 4 - , staticCompiler ? false 5 - , gmp ? null 6 - , mpfr ? null 7 - , texinfo ? null 8 - }: 9 - 10 - assert langC || langF77; 11 - 12 - with import ../../../lib; 13 - 14 - let version = "4.2.4"; in 15 - 16 - stdenv.mkDerivation { 17 - name = "gcc-${version}"; 18 - builder = if langF77 then ./fortran.sh else ./builder.sh; 19 - 20 - src = 21 - optional /*langC*/ true (fetchurl { 22 - url = "mirror://gnu/gcc/gcc-${version}/gcc-core-${version}.tar.bz2"; 23 - sha256 = "cfc9e7e14966097d24d510cfd905515e8f7464ab5379a50698ae3d88e1f7a532"; 24 - }) ++ 25 - optional langCC (fetchurl { 26 - url = "mirror://gnu/gcc/gcc-${version}/gcc-g++-${version}.tar.bz2"; 27 - sha256 = "0spzz549fifwv02ym33azzwizl0zkq5m1fgy88ccmcyzmwpgyzfq"; 28 - }) ++ 29 - optional langF77 (fetchurl { 30 - url = "mirror://gnu/gcc/gcc-${version}/gcc-fortran-${version}.tar.bz2"; 31 - sha256 = "6fc2056cd62921b2859381749710af765a46877bd46f9fe5ef6fab0671c47e04"; 32 - }); 33 - 34 - patches = 35 - optional noSysDirs [./no-sys-dirs.patch]; 36 - 37 - inherit noSysDirs profiledCompiler staticCompiler; 38 - 39 - buildInputs = [gmp mpfr texinfo]; 40 - 41 - configureFlags = " 42 - --disable-multilib 43 - --disable-libstdcxx-pch 44 - --with-system-zlib 45 - --enable-languages=${ 46 - concatStrings (intersperse "," 47 - ( optional langC "c" 48 - ++ optional langCC "c++" 49 - ++ optional langF77 "fortran" 50 - ) 51 - ) 52 - } 53 - ${if stdenv.isi686 then "--with-arch=i686" else ""} 54 - ${if gmp != null then "--with-gmp=${gmp}" else ""} 55 - ${if mpfr != null then "--with-mpfr=${mpfr}" else ""} 56 - "; 57 - 58 - makeFlags = if staticCompiler then "LDFLAGS=-static" else ""; 59 - 60 - passthru = { inherit langC langCC langF77; }; 61 - 62 - postInstall = "if test -f $out/bin/gfrotran; then ln -s $out/bin/gfortran $out/bin/g77; fi"; 63 - 64 - meta = { 65 - homepage = "http://gcc.gnu.org/"; 66 - license = "GPL/LGPL"; 67 - description = "GNU Compiler Collection, 4.2.x"; 68 - 69 - # Give the real GCC a lower priority than the GCC wrapper so that 70 - # both can be installed at the same time. 71 - priority = "7"; 72 - }; 73 - }
···
-86
pkgs/development/compilers/gcc-4.2/fortran.sh
··· 1 - source $stdenv/setup 2 - 3 - 4 - export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy 5 - mkdir $NIX_FIXINC_DUMMY 6 - 7 - export X_CFLAGS="-I${gmp}/include -I${mpfr}/include -L${gmp}/lib -L${mpfr}/lib"; 8 - 9 - # libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad 10 - # Thing. 11 - export CPP="gcc -E" 12 - 13 - 14 - if test "$noSysDirs" = "1"; then 15 - 16 - if test -e $NIX_GCC/nix-support/orig-libc; then 17 - 18 - # Figure out what extra flags to pass to the gcc compilers 19 - # being generated to make sure that they use our glibc. 20 - extraCFlags="$(cat $NIX_GCC/nix-support/libc-cflags)" 21 - extraLDFlags="$(cat $NIX_GCC/nix-support/libc-ldflags) $(cat $NIX_GCC/nix-support/libc-ldflags-before)" 22 - 23 - # Use *real* header files, otherwise a limits.h is generated 24 - # that does not include Glibc's limits.h (notably missing 25 - # SSIZE_MAX, which breaks the build). 26 - export NIX_FIXINC_DUMMY=$(cat $NIX_GCC/nix-support/orig-libc)/include 27 - 28 - else 29 - # Hack: support impure environments. 30 - extraCFlags="-isystem /usr/include" 31 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 32 - export NIX_FIXINC_DUMMY=/usr/include 33 - fi 34 - 35 - extraCFlags="-g0 $extraCFlags" 36 - extraLDFlags="--strip-debug $extraLDFlags" 37 - 38 - export NIX_EXTRA_CFLAGS=$extraCFlags 39 - for i in $extraLDFlags; do 40 - export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i" 41 - done 42 - 43 - makeFlagsArray=( \ 44 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 45 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 46 - LIMITS_H_TEST=true \ 47 - X_CFLAGS="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 48 - LDFLAGS="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 49 - LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 50 - ) 51 - fi 52 - 53 - 54 - preConfigure=preConfigure 55 - preConfigure() { 56 - # Perform the build in a different directory. 57 - mkdir ../build 58 - cd ../build 59 - configureScript=../$sourceRoot/configure 60 - } 61 - 62 - 63 - postInstall=postInstall 64 - postInstall() { 65 - # Remove precompiled headers for now. They are very big and 66 - # probably not very useful yet. 67 - find $out/include -name "*.gch" -exec rm -rf {} \; -prune 68 - 69 - # Remove `fixincl' to prevent a retained dependency on the 70 - # previous gcc. 71 - rm -rf $out/libexec/gcc/*/*/install-tools 72 - 73 - # Get rid of some "fixed" header files 74 - rm -rf $out/lib/gcc/*/*/include/root 75 - } 76 - 77 - 78 - if test -z "$staticCompiler"; then 79 - if test -z "$profiledCompiler"; then 80 - buildFlags="bootstrap $buildFlags" 81 - else 82 - buildFlags="profiledbootstrap $buildFlags" 83 - fi 84 - fi 85 - 86 - genericBuild
···
+4 -3
pkgs/development/compilers/gcc-4.3/default.nix
··· 6 , gmp, mpfr 7 , bison ? null, flex ? null 8 , enableMultilib ? false 9 }: 10 11 - assert langC; 12 assert langTreelang -> bison != null && flex != null; 13 14 - with import ../../../lib; 15 16 let version = "4.3.3"; in 17 18 stdenv.mkDerivation { 19 - name = "gcc-${version}"; 20 builder = ./builder.sh; 21 22 src =
··· 6 , gmp, mpfr 7 , bison ? null, flex ? null 8 , enableMultilib ? false 9 + , name ? "gcc" 10 }: 11 12 assert langTreelang -> bison != null && flex != null; 13 14 + with stdenv.lib; 15 16 let version = "4.3.3"; in 17 18 stdenv.mkDerivation { 19 + name = "${name}-${version}"; 20 + 21 builder = ./builder.sh; 22 23 src =
+2 -5
pkgs/development/interpreters/octave/hg.nix
··· 1 - {stdenv, fetchurl, g77, readline, ncurses, perl, flex, 2 bison, autoconf, automake, sourceByName, getConfig, lib, atlas, gperf, python, glibc, gnuplot, texinfo, texLive, qhull, libX11}: 3 4 - assert readline != null && ncurses != null && flex != null; 5 - assert g77.langFortran; 6 - 7 - let commonBuildInputs = [g77 readline ncurses perl glibc qhull libX11 texinfo]; in 8 9 stdenv.mkDerivation ({ 10 NIX_LDFLAGS = "-lpthread";
··· 1 + {stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, 2 bison, autoconf, automake, sourceByName, getConfig, lib, atlas, gperf, python, glibc, gnuplot, texinfo, texLive, qhull, libX11}: 3 4 + let commonBuildInputs = [gfortran readline ncurses perl glibc qhull libX11 texinfo]; in 5 6 stdenv.mkDerivation ({ 7 NIX_LDFLAGS = "-lpthread";
+42 -65
pkgs/top-level/all-packages.nix
··· 1520 inherit fetchurl stdenv gawk system; 1521 }; 1522 1523 - g77 = import ../build-support/gcc-wrapper { 1524 - name = "g77-wrapper"; 1525 - nativeTools = false; 1526 - nativeLibc = false; 1527 - gcc = import ../development/compilers/gcc-3.3 { 1528 - inherit fetchurl stdenv noSysDirs; 1529 - langF77 = true; 1530 - langCC = false; 1531 - }; 1532 - inherit (stdenv.gcc) binutils libc; 1533 - inherit stdenv; 1534 - }; 1535 - 1536 - g77_40 = import ../build-support/gcc-wrapper { 1537 - name = "g77-wrapper"; 1538 - nativeTools = false; 1539 - nativeLibc = false; 1540 - gcc = import ../development/compilers/gcc-4.0 { 1541 - inherit fetchurl stdenv noSysDirs; 1542 - langF77 = true; 1543 - langCC = false; 1544 - inherit gmp mpfr; 1545 - }; 1546 - inherit (stdenv.gcc) binutils libc; 1547 - inherit stdenv; 1548 - }; 1549 - 1550 - g77_41 = import ../build-support/gcc-wrapper { 1551 - name = "g77-wrapper"; 1552 - nativeTools = false; 1553 - nativeLibc = false; 1554 - gcc = import ../development/compilers/gcc-4.1 { 1555 - inherit fetchurl stdenv noSysDirs; 1556 - langF77 = true; 1557 - langCC = false; 1558 - langC = false; 1559 - inherit gmp mpfr; 1560 - }; 1561 - inherit (stdenv.gcc) binutils libc; 1562 - inherit stdenv; 1563 - }; 1564 - 1565 - gfortran = import ../build-support/gcc-wrapper { 1566 - name = "gfortran-wrapper"; 1567 - nativeTools = false; 1568 - nativeLibc = false; 1569 - gcc = import ../development/compilers/gcc-4.2/fortran.nix { 1570 - inherit fetchurl stdenv noSysDirs; 1571 - langF77 = true; 1572 - langCC = false; 1573 - langC = false; 1574 - inherit gmp mpfr; 1575 - }; 1576 - inherit (stdenv.gcc) binutils libc; 1577 - inherit stdenv; 1578 - }; 1579 - 1580 gcc = gcc43; 1581 1582 gcc295 = wrapGCC (import ../development/compilers/gcc-2.95 { ··· 1596 # expects a single digit after the dot. As a workaround, we feed 1597 # GCC with Texinfo 4.9. Stupid bug, hackish workaround. 1598 1599 - gcc40 = wrapGCC (import ../development/compilers/gcc-4.0 { 1600 inherit fetchurl stdenv noSysDirs; 1601 texinfo = texinfo49; 1602 profiledCompiler = true; 1603 }); 1604 1605 - gcc41 = wrapGCC (import ../development/compilers/gcc-4.1 { 1606 inherit fetchurl stdenv noSysDirs; 1607 texinfo = texinfo49; 1608 profiledCompiler = false; 1609 }); 1610 1611 - gcc42 = wrapGCC (import ../development/compilers/gcc-4.2 { 1612 inherit fetchurl stdenv noSysDirs; 1613 profiledCompiler = false; 1614 }); 1615 1616 - gcc43 = useFromStdenv "gcc" (wrapGCC (import ../development/compilers/gcc-4.3 { 1617 inherit fetchurl stdenv texinfo gmp mpfr noSysDirs; 1618 profiledCompiler = true; 1619 - })); 1620 1621 gcc43multi = lowPrio (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi (import ../development/compilers/gcc-4.3 { 1622 stdenv = overrideGCC stdenv (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi gcc); ··· 1633 gccupc40 = wrapGCCUPC (import ../development/compilers/gcc-upc-4.0 { 1634 inherit fetchurl stdenv bison autoconf gnum4 noSysDirs; 1635 texinfo = texinfo49; 1636 }); 1637 1638 # This new ghc stuff is under heavy development and will change ! ··· 2093 2094 # mercurial (hg) bleeding edge version 2095 octaveHG = import ../development/interpreters/octave/hg.nix { 2096 - inherit fetchurl readline ncurses perl flex atlas getConfig glibc qhull; 2097 inherit automake autoconf bison gperf lib python gnuplot texinfo texLive; # for dev Version 2098 inherit stdenv; 2099 inherit (xlibs) libX11; 2100 #stdenv = overrideGCC stdenv gcc40; 2101 - g77 = gfortran; 2102 inherit (bleedingEdgeRepos) sourceByName; 2103 }; 2104 ··· 9513 }; 9514 9515 scilab = (import ../applications/science/math/scilab) { 9516 - inherit stdenv fetchurl lib g77; 9517 inherit (gtkLibs) gtk; 9518 inherit ncurses Xaw3d tcl tk ocaml x11; 9519
··· 1520 inherit fetchurl stdenv gawk system; 1521 }; 1522 1523 gcc = gcc43; 1524 1525 gcc295 = wrapGCC (import ../development/compilers/gcc-2.95 { ··· 1539 # expects a single digit after the dot. As a workaround, we feed 1540 # GCC with Texinfo 4.9. Stupid bug, hackish workaround. 1541 1542 + gcc40 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.0) { 1543 inherit fetchurl stdenv noSysDirs; 1544 texinfo = texinfo49; 1545 profiledCompiler = true; 1546 }); 1547 1548 + gcc41 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.1) { 1549 inherit fetchurl stdenv noSysDirs; 1550 texinfo = texinfo49; 1551 profiledCompiler = false; 1552 }); 1553 1554 + gcc42 = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.2) { 1555 inherit fetchurl stdenv noSysDirs; 1556 profiledCompiler = false; 1557 }); 1558 1559 + gcc43 = useFromStdenv "gcc" gcc43_real; 1560 + 1561 + gcc43_real = wrapGCC (makeOverridable (import ../development/compilers/gcc-4.3) { 1562 inherit fetchurl stdenv texinfo gmp mpfr noSysDirs; 1563 profiledCompiler = true; 1564 + }); 1565 1566 gcc43multi = lowPrio (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi (import ../development/compilers/gcc-4.3 { 1567 stdenv = overrideGCC stdenv (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi gcc); ··· 1578 gccupc40 = wrapGCCUPC (import ../development/compilers/gcc-upc-4.0 { 1579 inherit fetchurl stdenv bison autoconf gnum4 noSysDirs; 1580 texinfo = texinfo49; 1581 + }); 1582 + 1583 + gfortran = gfortran43; 1584 + 1585 + gfortran40 = wrapGCC (gcc40.gcc.override { 1586 + name = "gfortran"; 1587 + langFortran = true; 1588 + langCC = false; 1589 + inherit gmp mpfr; 1590 + }); 1591 + 1592 + gfortran41 = wrapGCC (gcc41.gcc.override { 1593 + name = "gfortran"; 1594 + langFortran = true; 1595 + langCC = false; 1596 + langC = false; 1597 + inherit gmp mpfr; 1598 + }); 1599 + 1600 + gfortran42 = wrapGCC (gcc42.gcc.override { 1601 + name = "gfortran"; 1602 + langFortran = true; 1603 + langCC = false; 1604 + langC = false; 1605 + inherit gmp mpfr; 1606 + }); 1607 + 1608 + gfortran43 = wrapGCC (gcc43_real.gcc.override { 1609 + name = "gfortran"; 1610 + langFortran = true; 1611 + langCC = false; 1612 + langC = false; 1613 + profiledCompiler = false; 1614 }); 1615 1616 # This new ghc stuff is under heavy development and will change ! ··· 2071 2072 # mercurial (hg) bleeding edge version 2073 octaveHG = import ../development/interpreters/octave/hg.nix { 2074 + inherit fetchurl readline ncurses perl flex atlas getConfig glibc qhull gfortran; 2075 inherit automake autoconf bison gperf lib python gnuplot texinfo texLive; # for dev Version 2076 inherit stdenv; 2077 inherit (xlibs) libX11; 2078 #stdenv = overrideGCC stdenv gcc40; 2079 inherit (bleedingEdgeRepos) sourceByName; 2080 }; 2081 ··· 9490 }; 9491 9492 scilab = (import ../applications/science/math/scilab) { 9493 + inherit stdenv fetchurl lib gfortran; 9494 inherit (gtkLibs) gtk; 9495 inherit ncurses Xaw3d tcl tk ocaml x11; 9496