2015-05-22 07:31:14 +02:00
|
|
|
# This is a derivation specific to OS X (Darwin). It may work on other
|
|
|
|
# systems as well but has not been tested.
|
2015-05-19 22:59:55 +02:00
|
|
|
{gmp, mpfr, libmpc, fetchurl, stdenv}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-22 07:31:14 +02:00
|
|
|
name = "gfortran-${version}";
|
2015-05-19 22:59:55 +02:00
|
|
|
version = "5.1.0";
|
|
|
|
buildInputs = [gmp mpfr libmpc];
|
|
|
|
src = fetchurl {
|
2015-05-22 07:31:14 +02:00
|
|
|
url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
|
2015-05-19 22:59:55 +02:00
|
|
|
sha256 = "1bd5vj4px3s8nlakbgrh38ynxq4s654m6nxz7lrj03mvkkwgvnmp";
|
|
|
|
};
|
|
|
|
configureFlags = ''
|
|
|
|
--enable-languages=fortran --enable-checking=release --disable-bootstrap
|
|
|
|
--with-gmp=${gmp}
|
|
|
|
--with-mpfr=${mpfr}
|
|
|
|
--with-mpc=${libmpc}
|
|
|
|
'';
|
2015-05-19 23:49:58 +02:00
|
|
|
makeFlags = ["CC=clang"];
|
2015-05-22 07:31:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNU Fortran compiler, part of the GNU Compiler Collection.";
|
|
|
|
homepage = "https://gcc.gnu.org/fortran/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
2015-05-19 22:59:55 +02:00
|
|
|
}
|