nixpkgs/pkgs/development/libraries/science/math/arpack/default.nix

41 lines
966 B
Nix
Raw Normal View History

2015-12-28 09:44:03 -08:00
{ stdenv, lib, copyPathsToStore, fetchurl, autoconf, automake, gettext, libtool
, gfortran, openblas }:
2015-06-04 05:17:30 -07:00
with stdenv.lib;
2013-12-27 12:14:42 -08:00
2014-12-15 09:28:20 -08:00
let
2018-01-22 15:36:43 -08:00
version = "3.5.0";
2013-12-27 12:14:42 -08:00
in
stdenv.mkDerivation {
name = "arpack-${version}";
2013-12-27 12:14:42 -08:00
src = fetchurl {
2014-12-15 09:28:20 -08:00
url = "https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz";
2018-01-22 15:36:43 -08:00
sha256 = "0f8jx3fifmj9qdp289zr7r651y1q48k1jya859rqxq62mvis7xsh";
2013-12-27 12:14:42 -08:00
};
2015-12-28 09:44:03 -08:00
nativeBuildInputs = [ autoconf automake gettext libtool ];
2015-06-04 05:17:30 -07:00
buildInputs = [ gfortran openblas ];
2014-03-01 16:46:53 -08:00
2018-01-22 15:36:43 -08:00
doCheck = true;
2015-12-28 09:44:03 -08:00
BLAS_LIBS = "-L${openblas}/lib -lopenblas";
2015-06-04 05:17:30 -07:00
2018-01-22 15:36:43 -08:00
INTERFACE64 = optional openblas.blas64 "1";
2015-12-28 09:44:03 -08:00
preConfigure = ''
./bootstrap
'';
2013-12-27 12:14:42 -08:00
meta = {
homepage = https://github.com/opencollab/arpack-ng;
2014-12-15 09:28:57 -08:00
description = ''
A collection of Fortran77 subroutines to solve large scale eigenvalue
2015-09-16 09:08:39 -07:00
problems.
2014-12-15 09:28:57 -08:00
'';
2013-12-27 12:14:42 -08:00
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.ttuegel ];
platforms = stdenv.lib.platforms.unix;
2013-12-27 12:14:42 -08:00
};
}