blob: 3f800c2086e0ef89f295c87f7eb64db3549f9bd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
name = "libf2c-20100903";
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";
};
}
|