1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00
nixpkgs/pkgs/development/libraries/qrupdate/default.nix
Lluís Batlle i Rossell 61451871df Updating qrupdate and making it do the check phase
svn path=/nixpkgs/trunk/; revision=32495
2012-02-22 22:41:44 +00:00

30 lines
667 B
Nix

{ stdenv
, fetchurl
, gfortran
, liblapack
}:
stdenv.mkDerivation {
name = "qrupdate-1.1.2";
src = fetchurl {
url = mirror://sourceforge/qrupdate/qrupdate-1.1.2.tar.gz ;
sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";
};
configurePhase = ''
export PREFIX=$out
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
'';
doCheck = true;
checkTarget = "test";
buildTarget = "lib";
installTarget = "install-staticlib";
buildInputs = [ gfortran liblapack ];
}