14 stdenv.mkDerivation rec {
16 version = "20240614-2117";
19 url = "https://downloads.imagej.net/fiji/archive/${version}/fiji-nojre.zip";
20 sha256 = "sha256-OCNnN8CYniNEIfKRHRBoJ3Fo+u5AwXoPJAzUCc4P+f0=";
33 buildInputs = [ (lib.getLib stdenv.cc.cc) ];
41 mimeTypes = [ "image/*" ];
42 comment = "Scientific Image Analysis";
43 desktopName = "Fiji Is Just ImageJ";
44 genericName = "Fiji Is Just ImageJ";
45 categories = [ "Education" "Science" "ImageProcessing" ];
47 startupWMClass = "fiji-Main";
56 mkdir -p $out/{bin,fiji,share/pixmaps}
59 rm -f $out/fiji/jars/imagej-updater-*.jar
61 # Don't create a local desktop entry and avoid deprecated garbage
63 cat <<EOF > $out/bin/.fiji-launcher-hack
65 exec \$($out/fiji/ImageJ-linux64 --default-gc --dry-run "\$@")
67 chmod +x $out/bin/.fiji-launcher-hack
69 makeWrapper $out/bin/.fiji-launcher-hack $out/bin/fiji \
70 --prefix PATH : ${lib.makeBinPath [ jdk11 ]} \
71 --set JAVA_HOME ${jdk11.home} \
72 ''${gappsWrapperArgs[@]}
74 ln $out/fiji/images/icon.png $out/share/pixmaps/fiji.png
80 homepage = "https://imagej.net/software/fiji/";
81 description = "batteries-included distribution of ImageJ2, bundling a lot of plugins which facilitate scientific image analysis";
83 platforms = [ "x86_64-linux" ];
84 sourceProvenance = with sourceTypes; [
88 license = with lib.licenses; [ gpl2Plus gpl3Plus bsd2 publicDomain ];
89 maintainers = with maintainers; [ davisrichard437 ];