liblapack: use python2

This commit is contained in:
Frederik Rietdijk 2016-10-18 10:10:42 +02:00
parent ad227648c0
commit 9b66b5c2cc
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
fetchurl, fetchurl,
gfortran, gfortran,
cmake, cmake,
python, python2,
atlas ? null, atlas ? null,
shared ? false shared ? false
}: }:
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ atlasMaybeShared ]; propagatedBuildInputs = [ atlasMaybeShared ];
buildInputs = [ gfortran cmake ]; buildInputs = [ gfortran cmake ];
nativeBuildInputs = [ python ]; nativeBuildInputs = [ python2 ];
cmakeFlags = [ cmakeFlags = [
"-DUSE_OPTIMIZED_BLAS=ON" "-DUSE_OPTIMIZED_BLAS=ON"
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
doCheck = ! shared; doCheck = ! shared;
checkPhase = " checkPhase = "
sed -i 's,^#!.*,#!${python}/bin/python,' lapack_testing.py sed -i 's,^#!.*,#!${python2.interpreter},' lapack_testing.py
ctest ctest
"; ";

View File

@ -3,7 +3,7 @@
fetchurl, fetchurl,
gfortran, gfortran,
cmake, cmake,
python, python2,
atlas ? null, atlas ? null,
shared ? false shared ? false
}: }:
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ atlasMaybeShared ]; propagatedBuildInputs = [ atlasMaybeShared ];
buildInputs = [ gfortran cmake ]; buildInputs = [ gfortran cmake ];
nativeBuildInputs = [ python ]; nativeBuildInputs = [ python2 ];
cmakeFlags = [ cmakeFlags = [
"-DUSE_OPTIMIZED_BLAS=ON" "-DUSE_OPTIMIZED_BLAS=ON"
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
doCheck = ! shared; doCheck = ! shared;
checkPhase = " checkPhase = "
sed -i 's,^#!.*,#!${python}/bin/python,' lapack_testing.py sed -i 's,^#!.*,#!${python2.interpreter},' lapack_testing.py
ctest ctest
"; ";