about summary refs log tree commit diff
path: root/pkgs/applications/misc/goldendict/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/goldendict/default.nix')
-rw-r--r--pkgs/applications/misc/goldendict/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/misc/goldendict/default.nix b/pkgs/applications/misc/goldendict/default.nix
index 6b1865509b72..9c8edf3c774e 100644
--- a/pkgs/applications/misc/goldendict/default.nix
+++ b/pkgs/applications/misc/goldendict/default.nix
@@ -36,8 +36,8 @@ stdenv.mkDerivation rec {
   buildInputs = [
     qtbase qtsvg qtwebkit qttools
     libvorbis hunspell xz lzo
-  ] ++ lib.optionals stdenv.isLinux [ qtx11extras libXtst ]
-    ++ lib.optionals stdenv.isDarwin [ bzip2 libiconv ]
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ qtx11extras libXtst ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ bzip2 libiconv ]
     ++ lib.optional withCC opencc
     ++ lib.optional withEpwing libeb
     ++ lib.optional withExtraTiff libtiff
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
     (lib.optional withZim "CONFIG+=zim_support")
   ];
 
-  postInstall = lib.optionalString stdenv.isDarwin ''
+  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
     mkdir -p $out/Applications
     mv GoldenDict.app $out/Applications
   '';