nixpkgs/pkgs/development/libraries/libf2c/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
897 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
2021-06-22 13:21:29 +00:00
pname = "libf2c";
version = "20160102";
2016-02-11 00:03:11 +00:00
src = fetchurl {
url = "http://www.netlib.org/f2c/libf2c.zip";
sha256 = "1q78y8j8xpl8zdzdxmn5ablss56hi5a7vz3idam9l2nfx5q40h6a";
};
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
'';
nativeBuildInputs = [ unzip ];
hardeningDisable = [ "format" ];
2016-02-11 00:03:11 +00:00
# Makefile is missing depepdencies on generated headers:
# main.c:4:10: fatal error: signal1.h: No such file or directory
enableParallelBuilding = false;
meta = {
description = "F2c converts Fortran 77 source code to C";
homepage = "http://www.netlib.org/f2c/";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}