about summary refs log tree commit diff
path: root/pkgs/development/libraries/vulkan-loader/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/vulkan-loader/default.nix')
-rw-r--r--pkgs/development/libraries/vulkan-loader/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/vulkan-loader/default.nix b/pkgs/development/libraries/vulkan-loader/default.nix
index a43dda1b5f83..3c002d197ff5 100644
--- a/pkgs/development/libraries/vulkan-loader/default.nix
+++ b/pkgs/development/libraries/vulkan-loader/default.nix
@@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
   };
 
   patches = [ ./fix-pkgconfig.patch ]
-    ++ lib.optionals stdenv.is32bit [
+    ++ lib.optionals stdenv.hostPlatform.is32bit [
       # Backport patch to support 64-bit inodes on 32-bit systems
       # FIXME: remove in next update
       (fetchpatch {
@@ -25,11 +25,11 @@ stdenv.mkDerivation (finalAttrs: {
 
   nativeBuildInputs = [ cmake pkg-config ];
   buildInputs = [ vulkan-headers ]
-    ++ lib.optionals stdenv.isLinux [ libX11 libxcb libXrandr wayland ];
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ libX11 libxcb libXrandr wayland ];
 
   cmakeFlags = [ "-DCMAKE_INSTALL_INCLUDEDIR=${vulkan-headers}/include" ]
-    ++ lib.optional stdenv.isDarwin "-DSYSCONFDIR=${moltenvk}/share"
-    ++ lib.optional stdenv.isLinux "-DSYSCONFDIR=${addDriverRunpath.driverLink}/share"
+    ++ lib.optional stdenv.hostPlatform.isDarwin "-DSYSCONFDIR=${moltenvk}/share"
+    ++ lib.optional stdenv.hostPlatform.isLinux "-DSYSCONFDIR=${addDriverRunpath.driverLink}/share"
     ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DUSE_GAS=OFF";
 
   outputs = [ "out" "dev" ];