forked from mirrors/nixpkgs
9b9bd3d055
The changes: diff -r lold/arithchk.c l/arithchk.c 218a219,221 > if (sizeof(long long) > sizeof(long) > && sizeof(long long) == sizeof(void*)) > fprintf(f, "#define LONG_LONG_POINTERS\n"); diff -r lold/README l/README 41c41 < message to netlib@netlib.bell-labs.com --- > message to netlib@netlib.org
33 lines
607 B
Nix
33 lines
607 B
Nix
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libf2c";
|
|
|
|
src = fetchurl {
|
|
url = http://www.netlib.org/f2c/libf2c.zip;
|
|
sha256 = "1mcp1lh7gay7hm186dr0wvwd2bc05xydhnc1qy3dqs4n3r102g7i";
|
|
};
|
|
|
|
unpackPhase = ''
|
|
mkdir build
|
|
cd build
|
|
unzip ${src}
|
|
'';
|
|
|
|
makeFlags = "-f makefile.u";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include $out/lib
|
|
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";
|
|
};
|
|
}
|