Making liblapack do the check phase

svn path=/nixpkgs/trunk/; revision=32494
This commit is contained in:
Lluís Batlle i Rossell 2012-02-22 22:41:27 +00:00
parent 8f7485d784
commit 4d4d324776

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, atlas, cmake }:
{ stdenv, fetchurl, gfortran, atlas, cmake, python }:
stdenv.mkDerivation {
name = "liblapack-3.4.0";
@ -9,6 +9,7 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ atlas ];
buildInputs = [ gfortran cmake ];
buildNativeInputs = [ python ];
cmakeFlags = [
"-DUSE_OPTIMIZED_BLAS=ON"
@ -17,8 +18,19 @@ stdenv.mkDerivation {
"-DCMAKE_Fortran_FLAGS=-fPIC"
];
doCheck = true;
checkPhase = "
sed -i 's,^#!.*,#!${python}/bin/python,' lapack_testing.py
ctest
";
enableParallelBuilding = true;
passthru = {
blas = atlas;
};
meta = {
description = "Linear Algebra PACKage";
license = "revised-BSD";