git.iko.soy/typeable/nixpkgs
on master help sign in
arpack: build against atlasWithLapack
commit81c0f94d74c0f2f0e040560a003381f2861a71d7 authorThomas Tuegel <ttuegel@gmail.com> dateMon 15 Dec 2014, 11:28 (12 years ago) parent893f277
1 file changed+7−13
pkgs/development/libraries/science/math/arpack/default.nix+7−13
pkgs/development/libraries/science/math/arpack/default.nix+7−13
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, gfortran, openblas }:
1+{ stdenv, fetchurl, gfortran, atlasWithLapack }:
22
33let
44 version = "3.2.0";
@@ -10,23 +10,17 @@ stdenv.mkDerivation {
1010 sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
1111 };
1212
13− buildInputs = [ gfortran ];
14− propagatedBuildInputs = [ openblas ];
15−
16− preConfigure = ''
17− substituteInPlace arpack.pc.in \
18− --replace "@BLAS_LIBS@" "-L${openblas}/lib @BLAS_LIBS@"
19− '';
13+ buildInputs = [ gfortran atlasWithLapack ];
2014
2115 # Auto-detection fails because gfortran brings in BLAS by default
22− configureFlags="--with-blas=-lopenblas --with-lapack=-lopenblas";
16+ configureFlags="--with-blas=-latlas --with-lapack=-latlas";
2317
2418 meta = {
2519 homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
26− description = "A collection of Fortran77 subroutines to solve large scale eigenvalue problems";
27− # Looks like OpenBLAS is not that easy to build
28− # there is a sgemm_itcopy undefined reference on 32-bit, for example
29− platforms = ["x86_64-linux"];
20+ description = ''
21+ A collection of Fortran77 subroutines to solve large scale eigenvalue
22+ problems.
23+ '';
3024 license = stdenv.lib.licenses.bsd3;
3125 maintainers = [ stdenv.lib.maintainers.ttuegel ];
3226 };