about summary refs log tree commit diff
path: root/pkgs/development/python-modules/capstone/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/capstone/default.nix')
-rw-r--r--pkgs/development/python-modules/capstone/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/capstone/default.nix b/pkgs/development/python-modules/capstone/default.nix
index 74035c9bef30..e735871268e5 100644
--- a/pkgs/development/python-modules/capstone/default.nix
+++ b/pkgs/development/python-modules/capstone/default.nix
@@ -33,7 +33,7 @@ buildPythonPackage rec {
 
   # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag.
   # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense.
-  setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
+  setupPyBuildFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
     "--plat-name"
     "macosx_11_0"
   ];