anchor.diff:        --chdir "$out/share/domination" \
         --add-flags "-cp $out/share/domination/Domination.jar net.yura.domination.ui.swinggui.SwingGUIFrame"
   
  -    install -Dm644 \
  -      ${desktopItem}/share/applications/Domination.desktop \
  -      $out/share/applications/Domination.desktop
  -    install -Dm644 \
  -      "${editorDesktopItem}/share/applications/Domination Map Editor.desktop" \
  -      "$out/share/applications/Domination Map Editor.desktop"
       install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
  +    runHook postInstall
     '';
   
     passthru.tests = {
  
positive.code:     jdk8
      ant
      makeWrapper
    ];
  
    buildPhase = ''
      cd swingUI
      ant
    '';
  
    installPhase = ''
      # Remove unnecessary files and launchers (they'd need to be wrapped anyway)
      rm -r \
        build/game/src.zip \
  
negative.code: , ant
  , makeWrapper
  , makeDesktopItem
  , copyDesktopItems
  , nixosTests
  }:
  
  