2010-08-02 13:20:39 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gfortran
|
|
|
|
, liblapack
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2012-02-22 23:41:44 +01:00
|
|
|
name = "qrupdate-1.1.2";
|
2010-08-02 13:20:39 +02:00
|
|
|
src = fetchurl {
|
2012-02-22 23:41:44 +01:00
|
|
|
url = mirror://sourceforge/qrupdate/qrupdate-1.1.2.tar.gz ;
|
|
|
|
sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";
|
2010-08-02 13:20:39 +02:00
|
|
|
};
|
|
|
|
|
2012-02-22 23:41:44 +01:00
|
|
|
configurePhase = ''
|
2010-08-02 13:20:39 +02:00
|
|
|
export PREFIX=$out
|
2012-02-22 23:41:44 +01:00
|
|
|
sed -i -e 's,^BLAS=.*,BLAS=-L${liblapack}/lib -L${liblapack.blas} -lcblas -lf77blas -latlas,' \
|
|
|
|
-e 's,^LAPACK=.*,LAPACK=-L${liblapack}/lib -llapack -lcblas -lf77blas -latlas,' \
|
|
|
|
Makeconf
|
2010-08-02 13:20:39 +02:00
|
|
|
'';
|
2012-02-22 23:41:44 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
buildTarget = "lib";
|
|
|
|
|
|
|
|
installTarget = "install-staticlib";
|
2010-08-02 13:20:39 +02:00
|
|
|
|
2012-02-22 23:41:44 +01:00
|
|
|
buildInputs = [ gfortran liblapack ];
|
2010-08-02 13:20:39 +02:00
|
|
|
}
|