[PR #6062] [MERGED] fix(launcher): point NixOS at its shell for native mod builds #6635

Closed
opened 2026-11-03 06:24:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6062
Author: @doodlyyousuf
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/5248-nixos-native-mod-build


📝 Commits (3)

  • 6b1f5be fix(launcher): give the NixOS shell the ALSA and libudev files native mods need
  • 79e783e fix(launcher): name the NixOS shell instead of a package manager
  • 07002b1 docs(launcher): say the NixOS shell covers native mod builds

📊 Changes

3 files changed (+24 additions, -4 deletions)

View changed files

📝 launcher/README.md (+3 -1)
📝 launcher/shell.nix (+5 -3)
📝 launcher/src/rust_toolchain.rs (+16 -0)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (opencode, GLM 5.2), not by doodlyyousuf personally.

On NixOS the packages are in the store, so pkg-config --exists alsa and libudev fail outside a
shell whose setup hooks put them on PKG_CONFIG_PATH, and installing them in
environment.systemPackages does not change that. The check then fell through to the generic
"install with your distribution's package manager" advice, with the Debian command attached.

  • linux_needs now has a NixOS branch that names the launcher's own shell.nix instead
    (ID=nixos in /etc/os-release), so the message matches what actually works.
  • launcher/shell.nix gains udev (and ALSA in LD_LIBRARY_PATH, which the built client needs at
    runtime as the issue's follow-up notes), so nix-shell in launcher/ is enough for both the
    build and the run.
  • launcher/README.md says so in Building.
  • The existing a_linux_build_names_what_is_missing_and_the_distributions_command test covers the
    new branch: it asserts nix-shell is named and APT is not.

launcher tests pass (305). pr_ready --quick reports launcher clippy tripping on pre-existing
nonminimal_bool sites in backend.rs under the local Rust 1.95; nothing in this branch's files is
flagged, and launcher rustfmt passes.

Fixes #5248

🤖 Generated with opencode


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6062 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/5248-nixos-native-mod-build` --- ### 📝 Commits (3) - [`6b1f5be`](https://github.com/horizon-rust/horizon/commit/6b1f5be9ec555c9cbfa2d431e107f408c0c15ce8) fix(launcher): give the NixOS shell the ALSA and libudev files native mods need - [`79e783e`](https://github.com/horizon-rust/horizon/commit/79e783ec84b6d39062885c61ef7280f0f0a9549f) fix(launcher): name the NixOS shell instead of a package manager - [`07002b1`](https://github.com/horizon-rust/horizon/commit/07002b127bbf61db52a03ab4ed4b1e189f23d808) docs(launcher): say the NixOS shell covers native mod builds ### 📊 Changes **3 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `launcher/README.md` (+3 -1) 📝 `launcher/shell.nix` (+5 -3) 📝 `launcher/src/rust_toolchain.rs` (+16 -0) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (opencode, GLM 5.2), not by doodlyyousuf personally. On NixOS the packages are in the store, so `pkg-config --exists alsa` and `libudev` fail outside a shell whose setup hooks put them on `PKG_CONFIG_PATH`, and installing them in `environment.systemPackages` does not change that. The check then fell through to the generic "install with your distribution's package manager" advice, with the Debian command attached. - `linux_needs` now has a NixOS branch that names the launcher's own `shell.nix` instead (`ID=nixos` in `/etc/os-release`), so the message matches what actually works. - `launcher/shell.nix` gains `udev` (and ALSA in `LD_LIBRARY_PATH`, which the built client needs at runtime as the issue's follow-up notes), so `nix-shell` in `launcher/` is enough for both the build and the run. - `launcher/README.md` says so in Building. - The existing `a_linux_build_names_what_is_missing_and_the_distributions_command` test covers the new branch: it asserts `nix-shell` is named and APT is not. `launcher` tests pass (305). `pr_ready --quick` reports launcher clippy tripping on pre-existing `nonminimal_bool` sites in `backend.rs` under the local Rust 1.95; nothing in this branch's files is flagged, and launcher rustfmt passes. Fixes #5248 🤖 Generated with [opencode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6635
No description provided.