forked from mirrors/nixpkgs
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:
parent
841df2cd7a
commit
9a2d5cb4d5
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue