28 runescape = stdenv.mkDerivation rec {
29 pname = "runescape-launcher";
32 # Packages: https://content.runescape.com/downloads/ubuntu/dists/trusty/non-free/binary-amd64/Packages
33 # upstream is https://content.runescape.com/downloads/ubuntu/pool/non-free/r/${pname}/${pname}_${version}_amd64.deb
35 url = "https://archive.org/download/${pname}_${version}_amd64/${pname}_${version}_amd64.deb";
36 sha256 = "1v96vjiblphhbqhpp3m7wbvdvcnp76ncdlf4pdcr2z1dz8nh6shg";
59 runtimeDependencies = [
64 xdg-utils # The launcher uses `xdg-open` to open HTTP URLs in the user's browser
75 envVarsWithXmodifiers = ''
76 export MESA_GLSL_CACHE_DIR=~/Jagex
82 mkdir -p $out/bin $out/share
85 patchShebangs $out/usr/bin/runescape-launcher
86 substituteInPlace $out/usr/bin/runescape-launcher \
87 --replace "unset XMODIFIERS" "$envVarsWithXmodifiers" \
88 --replace "/usr/share/games/runescape-launcher/runescape" "$out/share/games/runescape-launcher/runescape"
90 cp -r $out/usr/bin $out/
91 cp -r $out/usr/share $out/
98 description = "Launcher for RuneScape 3, the current main RuneScape";
99 homepage = "https://www.runescape.com/";
100 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
101 license = licenses.unfree;
102 maintainers = with maintainers; [ grburst ];
103 platforms = [ "x86_64-linux" ];
110 * We can patch the runescape launcher, but it downloads a client at runtime and checks it for changes.
111 * For that we need use a buildFHSEnv.
112 * FHS simulates a classic linux shell
137 multiPkgs = pkgs: [ libGL ];
138 runScript = "runescape-launcher";
139 extraInstallCommands = ''
140 mkdir -p "$out/share/applications"
141 cp ${runescape}/share/applications/runescape-launcher.desktop "$out/share/applications"
142 cp -r ${runescape}/share/icons "$out/share/icons"
143 substituteInPlace "$out/share/applications/runescape-launcher.desktop" \
144 --replace "/usr/bin/runescape-launcher" "RuneScape"
148 description = "RuneScape Game Client (NXT) - Launcher for RuneScape 3";
149 homepage = "https://www.runescape.com/";
150 license = licenses.unfree;
151 maintainers = with maintainers; [ grburst ];
152 platforms = [ "x86_64-linux" ];