about summary refs log tree commit diff
path: root/pkgs/by-name/ca/castxml/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ca/castxml/package.nix')
-rw-r--r--pkgs/by-name/ca/castxml/package.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/by-name/ca/castxml/package.nix b/pkgs/by-name/ca/castxml/package.nix
index 88cbbec87c6d..c0fe17a1d097 100644
--- a/pkgs/by-name/ca/castxml/package.nix
+++ b/pkgs/by-name/ca/castxml/package.nix
@@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
     libxml2
     llvm
     zlib
-  ] ++ lib.optionals (!stdenv.isDarwin) [ libclang ];
+  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ libclang ];
 
   cmakeFlags =
     [
@@ -47,7 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
       (lib.cmakeBool "SPHINX_HTML" withHTML)
       (lib.cmakeBool "SPHINX_MAN" withManual)
     ]
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
       (lib.cmakeOptionType "path" "Clang_DIR" "${lib.getDev libclang}/lib/cmake/clang")
     ];