Skip to content

pomme-client, pomme-launcher: init - #554124

Open
DerGrumpf wants to merge 1 commit into
NixOS:masterfrom
DerGrumpf:pomme-client-init
Open

DerGrumpf wants to merge 1 commit into
NixOS:masterfrom
DerGrumpf:pomme-client-init

Conversation

@DerGrumpf

Copy link
Copy Markdown
Member

Motivation

Adds pomme-client and pomme-launcher, packaged together since pomme-launcher is a Tauri-based GUI that downloads and spawns pomme-client as its game process. Both come from the same upstream monorepo (PommeMC/Client), a Rust-native Minecraft client with a Vulkan renderer.

pomme-launcher is built to detect a pomme-client binary sitting next to its own executable and prefer that over downloading one from GitHub releases at runtime; this package symlinks the Nix-built pomme-client into pomme-launcher's output for exactly that reason, so the packaged launcher never needs network access to fetch a client binary, and the client it does run is correctly linked against Nix store paths.

Notable packaging details:

  • Upstream requires a nightly Rust toolchain (portable_simd in simdnbt, plus thiserror's nightly-only backtrace support pulled in transitively via azalea-buf). Since IFD-based nightly overlays aren't usable inside nixpkgs, this uses the documented RUSTC_BOOTSTRAP = "1" workaround (same approach as polars/arrow2).
  • pomme-client is wrapped with makeWrapper to set LD_LIBRARY_PATH for Vulkan/Wayland/X11/audio libs at runtime, since buildRustPackage doesn't do this automatically.
  • pomme-launcher is a Tauri v2 app using pnpm for its frontend; both live in a pnpm workspace whose lockfile is at the repo root rather than under the app directory.

Things done

@DerGrumpf
DerGrumpf force-pushed the pomme-client-init branch 5 times, most recently from bd75803 to ff562fe Compare August 19, 2026 20:13
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Aug 19, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! label Sep 24, 2026
@marie-bnl

marie-bnl commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Some remarks on pomme-client:

  • Why not use the fetched source's Cargo.lock instead of bundling it in nixpkgs?
    (Note I'm not a nixpkgs contributor, I don't know how it's traditionally done here)

  • Some libraries (libx*, wayland, libGL) seem to only be runtime dependencies and not need to figure in buildInputs. I've been successfully building the package after boiling it down to:

  buildInputs = [
    vulkan-loader
    alsa-lib
    udev
  ];

@DerGrumpf

Copy link
Copy Markdown
Member Author

I'll test what you are saying about the build inputs, but the stuff around Cargo.lock is normal in nixpkgs, we don't want to rely on 3rd party stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants