13 stdenv.mkDerivation rec {
15 version = "20240614-2117";
18 url = "https://downloads.imagej.net/fiji/archive/${version}/fiji-nojre.zip";
19 sha256 = "sha256-OCNnN8CYniNEIfKRHRBoJ3Fo+u5AwXoPJAzUCc4P+f0=";
24 nativeBuildInputs = [ autoPatchelfHook makeWrapper copyDesktopItems unzip ];
25 buildInputs = [ stdenv.cc.cc.lib ];
33 mimeTypes = [ "image/*" ];
34 comment = "Scientific Image Analysis";
35 desktopName = "Fiji Is Just ImageJ";
36 genericName = "Fiji Is Just ImageJ";
37 categories = [ "Education" "Science" "ImageProcessing" ];
39 startupWMClass = "fiji-Main";
46 mkdir -p $out/{bin,fiji,share/pixmaps}
49 rm -f $out/fiji/jars/imagej-updater-*.jar
51 # Don't create a local desktop entry and avoid deprecated garbage
53 cat <<EOF > $out/bin/.fiji-launcher-hack
55 exec \$($out/fiji/ImageJ-linux64 --default-gc --dry-run "\$@")
57 chmod +x $out/bin/.fiji-launcher-hack
59 makeWrapper $out/bin/.fiji-launcher-hack $out/bin/fiji \
60 --prefix PATH : ${lib.makeBinPath [ jdk11 ]} \
61 --set JAVA_HOME ${jdk11.home}
63 ln $out/fiji/images/icon.png $out/share/pixmaps/fiji.png
69 homepage = "https://imagej.net/software/fiji/";
70 description = "batteries-included distribution of ImageJ2, bundling a lot of plugins which facilitate scientific image analysis";
72 platforms = [ "x86_64-linux" ];
73 sourceProvenance = with sourceTypes; [
77 license = with lib.licenses; [ gpl2Plus gpl3Plus bsd2 publicDomain ];
78 maintainers = with maintainers; [ davisrichard437 ];