anchor.diff:      url = "https://wsr.imagej.net/distros/cross-platform/ij${version}.zip";
       sha256 = "97aba6fc5eb908f5160243aebcdc4965726693cb1353d9c0d71b8f5dd832cb7b";
     };
  -  nativeBuildInputs = [ makeWrapper unzip ];
  +  nativeBuildInputs = [ copyDesktopItems makeWrapper unzip ];
  +  desktopItems = lib.optionals stdenv.isLinux [
  +    (makeDesktopItem {
  +      name = "ImageJ";
  +      desktopName = "ImageJ";
  +      icon = "imagej";
  +      categories = "Science;Utility;Graphics;";
  +      exec = "imagej";
  +    })
  +  ];
  +
     passthru = {
       inherit jre;
     };
  
positive.code:     runHook postInstall
    '';
  
    meta = with lib; {
      homepage = "https://imagej.nih.gov/ij/";
      description = "Image processing and analysis in Java";
  
negative.code: , jre
  , unzip
  , makeWrapper
  , makeDesktopItem
  , copyDesktopItems
  }:
  
  let
    icon = fetchurl {
      url = "https://imagej.net/media/icons/imagej.png";
      sha256 = "sha256-nU2nWI1wxZB/xlOKsZzdUjj+qiCTjO6GwEKYgZ5Risg=";
    };
  in stdenv.mkDerivation rec {
    pname = "imagej";
    version = "150";
  
  