From 9a2d5cb4d52931436119ed8ddd7335e8500a2cdd Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sat, 7 Nov 2015 12:16:59 -0600 Subject: [PATCH] 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. --- pkgs/development/libraries/science/math/openblas/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/openblas/default.nix b/pkgs/development/libraries/science/math/openblas/default.nix index 11b6b3547e80..781c0d38ee61 100644 --- a/pkgs/development/libraries/science/math/openblas/default.nix +++ b/pkgs/development/libraries/science/math/openblas/default.nix @@ -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)