about summary refs log tree commit diff
path: root/pkgs/development/compilers/circt/circt-llvm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/circt/circt-llvm.nix')
-rw-r--r--pkgs/development/compilers/circt/circt-llvm.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/circt/circt-llvm.nix b/pkgs/development/compilers/circt/circt-llvm.nix
index 0043702fd847..8375ccc22f8f 100644
--- a/pkgs/development/compilers/circt/circt-llvm.nix
+++ b/pkgs/development/compilers/circt/circt-llvm.nix
@@ -34,7 +34,7 @@
 
   # Get rid of ${extra_libdir} (which ends up containing a path to circt-llvm.dev
   # in circt) so that we only have to remove the one fixed rpath.
-  postPatch = lib.optionalString stdenv.isDarwin ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace llvm/llvm/cmake/modules/AddLLVM.cmake \
       --replace-fail 'set(_install_rpath "@loader_path/../lib''${LLVM_LIBDIR_SUFFIX}" ''${extra_libdir})' \
         'set(_install_rpath "@loader_path/../lib''${LLVM_LIBDIR_SUFFIX}")'
@@ -69,7 +69,7 @@
   # it hasn't been populated yet.
   #
   # Inspired by fixDarwinDylibNames.
-  postFixup = lib.optionalString stdenv.isDarwin ''
+  postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
     local flags=(-delete_rpath @loader_path/../lib)
     for file in "$lib"/lib/*.dylib; do
       flags+=(-change @rpath/"$(basename "$file")" "$file")