about summary refs log tree commit diff
path: root/pkgs/applications/graphics/imagej/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics/imagej/default.nix')
-rw-r--r--pkgs/applications/graphics/imagej/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/imagej/default.nix b/pkgs/applications/graphics/imagej/default.nix
index 2398a61f2134..37fed43765ea 100644
--- a/pkgs/applications/graphics/imagej/default.nix
+++ b/pkgs/applications/graphics/imagej/default.nix
@@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
   buildInputs = [ glib ];
   dontWrapGApps = true;
 
-  desktopItems = lib.optionals stdenv.isLinux [
+  desktopItems = lib.optionals stdenv.hostPlatform.isLinux [
     (makeDesktopItem {
       name = "ImageJ";
       desktopName = "ImageJ";
@@ -56,7 +56,7 @@ in stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
-  postFixup = lib.optionalString stdenv.isLinux ''
+  postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
     makeWrapper ${jre}/bin/java $out/bin/imagej \
       ''${gappsWrapperArgs[@]} \
       --add-flags "-jar $out/share/java/ij.jar -ijpath $out/share"