anchor.diff:      sha256 = "0lpz4yzkvjpn5g36nibrkh773jnlkiqj6lghsx69i86h0xfb7gqf";
     };
   
  -  phases = [ "installPhase" ];
  -
  -  buildInputs = [ jre8 ];
  +  buildInputs = [ jre8 makeWrapper ];
   
     desktopItem = makeDesktopItem {
       name = "josm";
  
positive.code: { fetchurl, stdenv, makeDesktopItem, unzip, bash, jre8 }:
  
  stdenv.mkDerivation rec {
    name = "josm-${version}";
  
negative.code:     categories = "Education;Geoscience;Maps;";
    };
  
    buildCommand = ''
      mkdir -p $out/bin $out/share/java
      cp -v $src $out/share/java/josm.jar
  
      makeWrapper ${jre8}/bin/java $out/bin/josm \
        --add-flags "-jar $out/share/java/josm.jar"
  
      mkdir -p $out/share/applications
      cp $desktopItem/share/applications"/"* $out/share/applications
  