openblas: include which on all platforms

The `f_check` script uses `which` to check that the Fortran compiler is
available. `which` is a shell built-in on NixOS, but not on Darwin or
other Linuxes.
This commit is contained in:
Thomas Tuegel 2015-11-07 12:16:59 -06:00
parent 841df2cd7a
commit 9a2d5cb4d5

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, perl, config, coreutils
{ stdenv, fetchurl, gfortran, perl, which, config, coreutils
# Most packages depending on openblas expect integer width to match pointer width,
# but some expect to use 32-bit integers always (for compatibility with reference BLAS).
, blas64 ? null
@ -34,7 +34,7 @@ stdenv.mkDerivation {
inherit blas64;
nativeBuildInputs = optionals stdenv.isDarwin [coreutils] ++ [gfortran perl];
nativeBuildInputs = optionals stdenv.isDarwin [coreutils] ++ [gfortran perl which];
makeFlags =
(if local then localFlags else genericFlags)