anchor.diff:      homepage = "https://runelite.net/";
       license = licenses.bsd2;
       maintainers = with maintainers; [ kmeakin ];
  -    platforms = platforms.all;
  +    platforms = [ "x86_64-linux" ];
     };
   }
  
positive.code: { stdenv, fetchurl, makeWrapper, jre, makeDesktopItem, lib }:
  
  stdenv.mkDerivation rec {
    pname = "runelite";
    version = "2.0.0";
  
    src = fetchurl {
      url = "https://github.com/runelite/launcher/releases/download/${version}/RuneLite.jar";
      sha256 = "0q0x8g43ggkvp5fgnymgygx59xfhnyyrhpi6ha333gqg97rr0rvw";
    };
  
    icon = fetchurl {
      url = "https://github.com/runelite/launcher/raw/${version}/appimage/runelite.png";
      sha256 = "04fcjm7p546gr82g0jbh497j7rnh70lrvas0k171bff4v3knrjw1";
    };
  
    desktop = makeDesktopItem {
      name = "RuneLite";
  
negative.code:     desktopName = "RuneLite";
      genericName = "Oldschool Runescape";
      categories = "Game";
    };
  
    nativeBuildInputs = [ makeWrapper unzip ];
    installPhase = ''
      mkdir -p $out/share/runelite
      mkdir -p $out/share/applications
      mkdir -p $out/natives
  
      unzip ${jogl}    'natives/*' -d $out
      unzip ${gluegen} 'natives/*' -d $out
  
      ln -s ${jar} $out/share/runelite/RuneLite.jar
      ln -s ${desktop}/share/applications/RuneLite.desktop $out/share/applications/RuneLite.desktop
  
      # RuneLite looks for `.so` files in $PWD/natives, so ensure that we set the PWD to the right place
      makeWrapper ${jre}/bin/java $out/bin/runelite \
        --run "cd $out" \
        --prefix LD_LIBRARY_PATH : "${xorg.libXxf86vm}/lib" \
        --add-flags "-jar $out/share/runelite/RuneLite.jar"
    '';
  
    meta = with lib; {
  