anchor.diff:    buildPhase = ''
       export GRADLE_USER_HOME=$(mktemp -d)
       # point to offline repo
  -    sed -ie "s#mavenLocal()#mavenLocal(); maven { url '${deps}' }#g" build.gradle
  -    gradle --offline --no-daemon desktop:dist
  +    sed -ie "s#repositories {#repositories { maven { url '${deps}' };#g" build.gradle
  +    gradle --offline --no-daemon desktop:release
     '';
   
     installPhase = ''
       install -Dm644 desktop/build/libs/desktop-${version}.jar $out/share/shattered-pixel-dungeon.jar
       mkdir $out/bin
       makeWrapper ${jre}/bin/java $out/bin/shattered-pixel-dungeon \
  -      --prefix LD_LIBRARY_PATH : ${xorg.libXxf86vm}/lib:${openal}/lib \
  +      --prefix LD_LIBRARY_PATH : ${libpulseaudio}/lib \
         --add-flags "-jar $out/share/shattered-pixel-dungeon.jar"
     '';
   
     meta = with stdenv.lib; {
       homepage = "https://shatteredpixel.com/";
  -    downloadPage = "https://github.com/00-Evan/shattered-pixel-dungeon-gdx/releases";
  +    downloadPage = "https://github.com/00-Evan/shattered-pixel-dungeon/releases";
       description = "Traditional roguelike game with pixel-art graphics and simple interface";
       license = licenses.gpl3;
       maintainers = with maintainers; [ fgaz ];
  
positive.code:     nativeBuildInputs = [ gradle_5 perl ];
      buildPhase = ''
        export GRADLE_USER_HOME=$(mktemp -d)
        gradle --no-daemon desktop:dist
      '';
      # perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)
      installPhase = ''
  
negative.code:     '';
      outputHashAlgo = "sha256";
      outputHashMode = "recursive";
      outputHash = "0ih10c6c85vhrqgilqmkzqjx3dc8cscvs9wkh90zgdj10qv0iba3";
    };
  
  in stdenv.mkDerivation rec {
  