about summary refs log tree commit diff
path: root/pkgs/development/libraries/raylib/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/raylib/default.nix')
-rw-r--r--pkgs/development/libraries/raylib/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/libraries/raylib/default.nix b/pkgs/development/libraries/raylib/default.nix
index 2cdde4f2b726..5c1b7d1dab0a 100644
--- a/pkgs/development/libraries/raylib/default.nix
+++ b/pkgs/development/libraries/raylib/default.nix
@@ -37,16 +37,16 @@ stdenv.mkDerivation (finalAttrs: {
 
   nativeBuildInputs = [
     cmake
-  ] ++ lib.optional stdenv.isLinux autoPatchelfHook;
+  ] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
 
   buildInputs = [ glfw ]
-    ++ lib.optionals stdenv.isLinux [ mesa libXi libXcursor libXrandr libXinerama ]
-    ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ]
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ mesa libXi libXcursor libXrandr libXinerama ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa ]
     ++ lib.optional alsaSupport alsa-lib
     ++ lib.optional pulseSupport libpulseaudio;
 
-  propagatedBuildInputs = lib.optionals stdenv.isLinux [ libGLU libX11 ]
-    ++ lib.optionals stdenv.isDarwin [ OpenGL ];
+  propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libGLU libX11 ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ OpenGL ];
 
   # https://github.com/raysan5/raylib/wiki/CMake-Build-Options
   cmakeFlags = [
@@ -70,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
   ];
 
   # fix libasound.so/libpulse.so not being found
-  appendRunpaths = lib.optionals stdenv.isLinux [
+  appendRunpaths = lib.optionals stdenv.hostPlatform.isLinux [
     (lib.makeLibraryPath (lib.optional alsaSupport alsa-lib ++ lib.optional pulseSupport libpulseaudio))
   ];