Making liblapack do the check phase
svn path=/nixpkgs/trunk/; revision=32494
This commit is contained in:
parent
8f7485d784
commit
4d4d324776
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user