about summary refs log tree commit diff
path: root/pkgs/development/libraries/fbthrift/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/fbthrift/default.nix')
-rw-r--r--pkgs/development/libraries/fbthrift/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/development/libraries/fbthrift/default.nix
index 5ac08f2c6cc3..04bce085c088 100644
--- a/pkgs/development/libraries/fbthrift/default.nix
+++ b/pkgs/development/libraries/fbthrift/default.nix
@@ -39,8 +39,8 @@ stdenv.mkDerivation rec {
   ];
 
   cmakeFlags = [
-    "-DBUILD_SHARED_LIBS=${if stdenv.isDarwin then "OFF" else "ON"}"
-  ] ++ lib.optionals stdenv.isDarwin [
+    "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}"
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
   ];