about summary refs log tree commit diff
path: root/pkgs/applications/misc/llpp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/llpp/default.nix')
-rw-r--r--pkgs/applications/misc/llpp/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/misc/llpp/default.nix b/pkgs/applications/misc/llpp/default.nix
index db089796222c..ff5d34e8224a 100644
--- a/pkgs/applications/misc/llpp/default.nix
+++ b/pkgs/applications/misc/llpp/default.nix
@@ -43,8 +43,8 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ makeWrapper ocaml pkg-config ];
   buildInputs = [ mupdf libX11 freetype zlib gumbo jbig2dec openjpeg libjpeg lcms2 harfbuzz ]
-    ++ lib.optionals stdenv.isLinux [ libGLU libGL ]
-    ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.OpenGL darwin.apple_sdk.frameworks.Cocoa ];
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.OpenGL darwin.apple_sdk.frameworks.Cocoa ];
 
   dontStrip = true;
 
@@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
     install build/llpp $out/bin
     install misc/llpp.inotify $out/bin/llpp.inotify
     install -Dm444 misc/llpp.desktop -t $out/share/applications
-  '' + lib.optionalString stdenv.isLinux ''
+  '' + lib.optionalString stdenv.hostPlatform.isLinux ''
     wrapProgram $out/bin/llpp \
         --prefix PATH ":" "${xclip}/bin"