2011-03-03 16:41:06 +03:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-07 04:13:54 +04:00
|
|
|
name = "libf2c-20100903";
|
2011-03-03 16:41:06 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.netlib.org/f2c/libf2c.zip;
|
2013-05-31 11:25:02 +04:00
|
|
|
sha256 = "1mcp1lh7gay7hm186dr0wvwd2bc05xydhnc1qy3dqs4n3r102g7i";
|
2011-03-03 16:41:06 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
unzip ${src}
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "-f makefile.u";
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/include $out/lib
|
2011-03-03 16:41:06 +03:00
|
|
|
cp libf2c.a $out/lib
|
|
|
|
cp f2c.h $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "F2c converts Fortran 77 source code to C";
|
|
|
|
homepage = http://www.netlib.org/f2c/;
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|