2010-08-02 11:20:39 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gfortran
|
2020-03-31 14:47:18 +00:00
|
|
|
, blas
|
|
|
|
, lapack
|
2010-08-02 11:20:39 +00:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2012-02-22 22:41:44 +00:00
|
|
|
name = "qrupdate-1.1.2";
|
2010-08-02 11:20:39 +00:00
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/qrupdate/qrupdate-1.1.2.tar.gz";
|
2015-06-07 18:44:24 +00:00
|
|
|
sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";
|
2010-08-02 11:20:39 +00:00
|
|
|
};
|
2015-06-07 18:44:24 +00:00
|
|
|
|
|
|
|
configurePhase =
|
|
|
|
''
|
|
|
|
export PREFIX=$out
|
2020-03-31 14:47:18 +00:00
|
|
|
sed -i -e 's,^BLAS=.*,BLAS=-L${blas}/lib -lblas,' \
|
|
|
|
-e 's,^LAPACK=.*,LAPACK=-L${lapack}/lib -llapack,' \
|
2015-06-07 18:44:24 +00:00
|
|
|
Makeconf
|
|
|
|
''
|
2020-04-20 20:50:55 +00:00
|
|
|
+ stdenv.lib.optionalString blas.isILP64
|
2015-06-07 18:44:24 +00:00
|
|
|
''
|
|
|
|
sed -i Makeconf -e '/^FFLAGS=.*/ s/$/-fdefault-integer-8/'
|
|
|
|
'';
|
2012-02-22 22:41:44 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2015-06-07 18:44:24 +00:00
|
|
|
buildFlags = [ "lib" "solib" ];
|
|
|
|
|
2019-11-04 12:33:53 +00:00
|
|
|
installTargets = stdenv.lib.optionals stdenv.isDarwin [ "install-staticlib" "install-shlib" ];
|
2012-02-22 22:41:44 +00:00
|
|
|
|
2020-03-31 14:47:18 +00:00
|
|
|
buildInputs = [ gfortran blas lapack ];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2018-10-27 12:59:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library for fast updating of qr and cholesky decompositions";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/qrupdate/";
|
2018-10-27 12:59:39 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2010-08-02 11:20:39 +00:00
|
|
|
}
|