anchor.diff: -{ stdenv, requireFile, makeDesktopItem, libicns, imagemagick, zstd, jre }:
  +{ stdenv, requireFile, makeDesktopItem, libicns, imagemagick, jre, fetchzip }:
   
   let
  -  version = "5.3.0";
  +  version = "5.6.1";
     desktopItem = makeDesktopItem {
       name = "stm32CubeMX";
       exec = "stm32cubemx";
  
positive.code:   '';
  
    meta = with stdenv.lib; {
      description = ''
        A graphical tool that allows a very easy configuration of STM32
        microcontrollers and microprocessors, as well as the generation of the
        corresponding initialization C code for the Arm® Cortex®-M core or a
  
negative.code:   pname = "stm32cubemx";
    inherit version;
  
  
    src = fetchzip {
      url = "https://sw-center.st.com/packs/resource/library/stm32cube_mx_v${builtins.replaceStrings ["."] [""] version}.zip";
      sha256 = "1y4a340wcjl88kjw1f1x85ffp4b5g1psryn9mgkd717w2bfpf29l";
      stripRoot= false;
    };
  
    nativeBuildInputs = [ libicns imagemagick ];
  
    buildCommand = ''
      mkdir -p $out/{bin,opt/STM32CubeMX,share/applications}
      cp -r $src/. $out/opt/STM32CubeMX/
      chmod +rx $out/opt/STM32CubeMX/STM32CubeMX.exe
      cat << EOF > $out/bin/${pname}
      #!${stdenv.shell}
      ${jre}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX.exe
  