3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libf2c/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

33 lines
607 B
Nix

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
name = "libf2c";
src = fetchurl {
url = http://www.netlib.org/f2c/libf2c.zip;
sha256 = "14py0zdwzj5gqjzi0z2hlcy3czpzx1fav55akdj143qgav8h6dav";
};
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";
};
}