anchor.diff:    inherit pname version src;
   
     buildPhase = ''
  +    VERSION=${version}
  +    SEMVER_STR=${version}
  +
       mvn -Plinux package --offline -Dmaven.test.skip=true -Dmaven.repo.local=$(cp -dpR ${deps}/.m2 ./ && chmod +w -R .m2 && pwd)/.m2
     '';
   
  +
  +  # This is based on the instructins in https://github.com/cryptomator/cryptomator/blob/develop/dist/linux/appimage/build.sh
     installPhase = ''
       mkdir -p $out/bin/ $out/share/cryptomator/libs/ $out/share/cryptomator/mods/
   
  
positive.code:     makeWrapper ${jre}/bin/java $out/bin/cryptomator \
        --add-flags "--class-path '$out/share/cryptomator/libs/*'" \
        --add-flags "--module-path '$out/share/cryptomator/mods'" \
        --add-flags "-Dcryptomator.settingsPath='~/.config/Cryptomator/settings.json'" \
        --add-flags "-Dcryptomator.ipcSocketPath='~/.config/Cryptomator/ipc.socket'" \
        --add-flags "-Dcryptomator.logDir='~/.local/share/Cryptomator/logs'" \
        --add-flags "-Dcryptomator.mountPointsDir='~/.local/share/Cryptomator/mnt'" \
        --add-flags "-Djdk.gtk.version=3" \
        --add-flags "-Xss20m" \
        --add-flags "-Xmx512m" \
  
negative.code: 
      outputHashAlgo = "sha256";
      outputHashMode = "recursive";
      outputHash = "sha256-quYUJX/JErtWuUQBYXXee/uZGkO0UBr4qxcGticxGUc=";
  
      doCheck = false;
    };
  