about summary refs log tree commit diff
path: root/pkgs/development/compilers/halide/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/halide/default.nix')
-rw-r--r--pkgs/development/compilers/halide/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/halide/default.nix b/pkgs/development/compilers/halide/default.nix
index 738ecc81a156..d34ee3af9163 100644
--- a/pkgs/development/compilers/halide/default.nix
+++ b/pkgs/development/compilers/halide/default.nix
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
   # Note: on x86_64-darwin, clang fails to find AvailabilityVersions.h, so we remove it.
   # Halide uses AvailabilityVersions.h and TargetConditionals.h to determine whether
   # ::aligned_alloc is available. For us, it isn't.
-  + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
+  + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
     substituteInPlace 'src/runtime/HalideBuffer.h' \
       --replace '#ifdef __APPLE__
     #include <AvailabilityVersions.h>
@@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
     libjpeg
     eigen
     openblas
-  ] ++ lib.optionals (!stdenv.isDarwin) [
+  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
     mesa
     libGL
   ];