about summary refs log tree commit diff
path: root/pkgs/development/libraries/libepoxy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libepoxy/default.nix')
-rw-r--r--pkgs/development/libraries/libepoxy/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libepoxy/default.nix b/pkgs/development/libraries/libepoxy/default.nix
index f771ad140b55..5ff8055cedee 100644
--- a/pkgs/development/libraries/libepoxy/default.nix
+++ b/pkgs/development/libraries/libepoxy/default.nix
@@ -10,7 +10,7 @@
 , libX11
 , Carbon
 , OpenGL
-, x11Support ? !stdenv.isDarwin
+, x11Support ? !stdenv.hostPlatform.isDarwin
 , testers
 }:
 
@@ -30,15 +30,15 @@ stdenv.mkDerivation (finalAttrs: {
   postPatch = ''
     patchShebangs src/*.py
   ''
-  + lib.optionalString stdenv.isDarwin ''
+  + lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace src/dispatch_common.h --replace "PLATFORM_HAS_GLX 0" "PLATFORM_HAS_GLX 1"
   ''
   # cgl_core and cgl_epoxy_api fail in darwin sandbox and on Hydra (because it's headless?)
-  + lib.optionalString stdenv.isDarwin ''
+  + lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace test/meson.build \
       --replace "[ 'cgl_epoxy_api', [ 'cgl_epoxy_api.c' ] ]," ""
   ''
-  + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
+  + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
     substituteInPlace test/meson.build \
       --replace "[ 'cgl_core', [ 'cgl_core.c' ] ]," ""
   '';
@@ -47,23 +47,23 @@ stdenv.mkDerivation (finalAttrs: {
 
   nativeBuildInputs = [ meson ninja pkg-config utilmacros python3 ];
 
-  buildInputs = lib.optionals (x11Support && !stdenv.isDarwin) [
+  buildInputs = lib.optionals (x11Support && !stdenv.hostPlatform.isDarwin) [
     libGL
   ] ++ lib.optionals x11Support [
     libX11
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     Carbon
     OpenGL
   ];
 
   mesonFlags = [
-    "-Degl=${if (x11Support && !stdenv.isDarwin) then "yes" else "no"}"
+    "-Degl=${if (x11Support && !stdenv.hostPlatform.isDarwin) then "yes" else "no"}"
     "-Dglx=${if x11Support then "yes" else "no"}"
     "-Dtests=${lib.boolToString finalAttrs.finalPackage.doCheck}"
     "-Dx11=${lib.boolToString x11Support}"
   ];
 
-  env.NIX_CFLAGS_COMPILE = lib.optionalString (x11Support && !stdenv.isDarwin) ''-DLIBGL_PATH="${lib.getLib libGL}/lib"'';
+  env.NIX_CFLAGS_COMPILE = lib.optionalString (x11Support && !stdenv.hostPlatform.isDarwin) ''-DLIBGL_PATH="${lib.getLib libGL}/lib"'';
 
   doCheck = true;