2011-03-03 14:41:06 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-09 12:58:15 +01:00
|
|
|
name = "libf2c-20160102";
|
2016-02-11 01:03:11 +01:00
|
|
|
|
2011-03-03 14:41:06 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.netlib.org/f2c/libf2c.zip;
|
2018-03-09 12:58:15 +01:00
|
|
|
sha256 = "1q78y8j8xpl8zdzdxmn5ablss56hi5a7vz3idam9l2nfx5q40h6a";
|
2011-03-03 14:41:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
unzip ${src}
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "-f makefile.u";
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/include $out/lib
|
2011-03-03 14:41:06 +01:00
|
|
|
cp libf2c.a $out/lib
|
|
|
|
cp f2c.h $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 01:03:11 +01:00
|
|
|
|
2011-03-03 14:41:06 +01:00
|
|
|
meta = {
|
|
|
|
description = "F2c converts Fortran 77 source code to C";
|
|
|
|
homepage = http://www.netlib.org/f2c/;
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-03-03 14:41:06 +01:00
|
|
|
};
|
|
|
|
}
|