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

41 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, lib, copyPathsToStore, fetchurl, 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
version = "3.2.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";
sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
2013-12-27 12:14:42 -08:00
};
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
postPatch = ''
substituteInPlace arpack.pc.in --replace "@openblas@" "${openblas}/lib"
'';
2015-06-04 05:17:30 -07:00
buildInputs = [ gfortran openblas ];
2014-03-01 16:46:53 -08:00
2013-12-27 12:14:42 -08:00
# Auto-detection fails because gfortran brings in BLAS by default
2015-06-04 05:17:30 -07:00
configureFlags = [
"--with-blas=-lopenblas"
"--with-lapack=-lopenblas"
];
FFLAGS = optional openblas.blas64 "-fdefault-integer-8";
2013-12-27 12:14:42 -08:00
meta = {
2015-09-16 09:08:39 -07:00
homepage = "http://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 ];
2013-12-27 12:14:42 -08:00
};
}