1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

Adding libf2c

svn path=/nixpkgs/trunk/; revision=26144
This commit is contained in:
Lluís Batlle i Rossell 2011-03-03 13:41:06 +00:00
parent b679cf6a66
commit 7912200505
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{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 = ''
ensureDir $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";
};
}

View file

@ -3502,6 +3502,8 @@ let
libmpeg2 = mpeg2dec;
};
libf2c = callPackage ../development/libraries/libf2c {};
libfixposix = callPackage ../development/libraries/libfixposix {};
libffcall = builderDefsPackage (import ../development/libraries/libffcall) {