anchor.diff:          --set MESA_GL_VERSION_OVERRIDE 2.1 \
           --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" \
           --add-flags "-Dsun.java2d.opengl=true -jar $out/share/java/${module}-${version}.jar -cp $out/share/java/Furniture.jar:$out/share/java/Textures.jar:$out/share/java/Help.jar -d${toString stdenv.hostPlatform.parsed.cpu.bits}"
  +
  +
  +      # remember the store paths found inside the .jar libraries. note that
  +      # which file they are in does not matter in particular, just that some
  +      # file somewhere lists them in plain-text
  +      mkdir -p $out/nix-support
  +      cp .jar-paths $out/nix-support/depends
   
         runHook postInstall
       '';
  
positive.code:     };
  
      postPatch = ''
        patchelf --set-rpath ${libXxf86vm}/lib lib/java3d-1.6/linux/amd64/libnativewindow_awt.so
        patchelf --set-rpath ${libXxf86vm}/lib lib/java3d-1.6/linux/amd64/libnativewindow_x11.so
        patchelf --set-rpath ${libXxf86vm}/lib lib/java3d-1.6/linux/i586/libnativewindow_awt.so
        patchelf --set-rpath ${libXxf86vm}/lib lib/java3d-1.6/linux/i586/libnativewindow_x11.so
      '';
  
      nativeBuildInputs = [ makeWrapper unzip ];
      buildInputs = [ ant jdk8 p7zip gtk3 gsettings-desktop-schemas ];
  
      buildPhase = ''
        runHook preBuild
  
negative.code: , gtk3
  , gsettings-desktop-schemas
  , p7zip
  , autoPatchelfHook
  , libXxf86vm
  , unzip
  }:
  