about summary refs log tree commit diff
path: root/pkgs/development/python-modules/capstone/4.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/capstone/4.nix')
-rw-r--r--pkgs/development/python-modules/capstone/4.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/capstone/4.nix b/pkgs/development/python-modules/capstone/4.nix
index 66b57a01bcb2..b7c31d336091 100644
--- a/pkgs/development/python-modules/capstone/4.nix
+++ b/pkgs/development/python-modules/capstone/4.nix
@@ -30,7 +30,7 @@ buildPythonPackage {
 
   # 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"
   ];