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

28 lines
779 B
Nix
Raw Normal View History

2014-12-15 18:28:57 +01:00
{ stdenv, fetchurl, gfortran, atlasWithLapack }:
2013-12-27 21:14:42 +01:00
2014-12-15 18:28:20 +01:00
let
version = "3.2.0";
2013-12-27 21:14:42 +01:00
in
stdenv.mkDerivation {
name = "arpack-${version}";
src = fetchurl {
2014-12-15 18:28:20 +01:00
url = "https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz";
sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
2013-12-27 21:14:42 +01:00
};
2014-12-15 18:28:57 +01:00
buildInputs = [ gfortran atlasWithLapack ];
2014-03-02 01:46:53 +01:00
2013-12-27 21:14:42 +01:00
# Auto-detection fails because gfortran brings in BLAS by default
2014-12-15 18:28:57 +01:00
configureFlags="--with-blas=-latlas --with-lapack=-latlas";
2013-12-27 21:14:42 +01:00
meta = {
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
2014-12-15 18:28:57 +01:00
description = ''
A collection of Fortran77 subroutines to solve large scale eigenvalue
problems.
'';
2013-12-27 21:14:42 +01:00
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.ttuegel ];
2013-12-27 21:14:42 +01:00
};
}