13 maven.buildMavenPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-ckeZ/7rACyZ5j+zzC5hv1NaXTi9q/KvOzMPTDd1crHQ=";
25 mvnHash = "sha256-FpfHtGIfo84z6v9/nzc47+JeIM43MR9mWhVOPSi0xhM=";
27 desktop = makeDesktopItem {
32 comment = "Open source Old School RuneScape client";
33 desktopName = "RuneLite";
34 genericName = "Oldschool Runescape";
35 categories = [ "Game" ];
38 # tests require internet :(
39 mvnParameters = "-Dmaven.test.skip";
40 nativeBuildInputs = [ makeWrapper ];
43 mkdir -p $out/share/icons
44 mkdir -p $out/share/applications
46 cp target/RuneLite.jar $out/share
47 cp appimage/runelite.png $out/share/icons
49 ln -s ${desktop}/share/applications/RuneLite.desktop $out/share/applications/RuneLite.desktop
51 makeWrapper ${jre}/bin/java $out/bin/runelite \
52 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ xorg.libXxf86vm libGL ]}" \
53 --add-flags "-jar $out/share/RuneLite.jar"
56 passthru.updateScript = gitUpdater { };
59 description = "Open source Old School RuneScape client";
60 homepage = "https://runelite.net/";
61 sourceProvenance = with lib.sourceTypes; [
65 license = lib.licenses.bsd2;
66 maintainers = with lib.maintainers; [ kmeakin moody ];
67 platforms = [ "x86_64-linux" ];
68 mainProgram = "runelite";