kahnix
October 20, 2026, 10:37am
1
Jagex released a native Linux launcher for OSRS. On NixOS it fails out of the box: the “Play Now” button downloads RuneLite.AppImage and executes it, and that doesn’t run here without appimage-run. I packaged it so I could stop using the Bolt launcher.
I’ve been working through Vimjoyer’s Nix map and wanted to package something I actually use day to day, so this is my first go at maintaining a package.
Contribute to Kahnix/jagex-launcher-nix development by creating an account on GitHub.
4 Likes
P.S: If you’re using appimageTools.wrapType2 you don’t need appimageTools.extract (in fact it leads to duplicated extraction work)!
See the documentation changes in this PR:
master ← uku3lig:appimage-extendmkdrv
opened 11:13AM - 11 Mar 26 UTC
Feedback welcome. This is an attempt at making both buildFHSEnv and appimageTool… s.{wrapAppImage,wrapType2} support the finalAttrs pattern via lib.extendMkDerivation.
This is achieved by removing runCommand from buildFHSEnv and replace it with a "normal" mkDerivation that does the exact same thing (copied the implementation of runCommandWith), to be used in extendMkDerivation.
I have also made a somewhat breaking change to wrapAppImage: it now takes a `contents` argument instead of `src`, leaving src for the actual appimage file; overriding wouldn't work otherwise. (Potential TODO: emit a warning when contents is not specified? I don't think it would be a bad idea, I just don't really know how to do it)
## Things done
- Built on platform:
- [ ] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [x] Tested basic functionality of all binary files, usually in `./result/bin/`. (tested osu-lazer-bin)
- Nixpkgs Release Notes
- [x] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
3 Likes
kahnix
October 20, 2026, 8:20pm
3
Hey, thanks for the pointer! I’ll drop the separate extract
I’m also experimenting on a branch with running nixpkgs runelite instead of the AppImage the launcher downloads, since that was asked for in jagex-launcher: init at 0.1.7 by Orbsa · Pull Request #547255 · NixOS/nixpkgs · GitHub . That one patches the bundle in postExtract, so if I’ve read the docs right it has to stay on wrapAppImage.
1 Like
Yep, although just to be clear, wrapAppImage is for when you are using manual extract (usually for postExtract), and wrapType2 with finalAttrs (and no manual extract) is what you should use for all your other AppImage-wrapping needs.
1 Like