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

38 lines
918 B
Nix
Raw Normal View History

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