nix: add a development shell #192

Merged
gtb-sbe merged 4 commits from upstream-pr/192 into main 2026-11-25 23:23:58 +00:00
gtb-sbe commented 2026-11-25 19:32:00 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by gtb-sbe on 2026-11-25T19:32:00Z.


Summary

Adds a Nix flake with a development shell for x86-64 Linux: Rust 1.95 with the Linux and MSVC targets, Python 3.12 with pefile, clang-cl, lld-link, LLVM, DXC, cargo-xwin, Vulkan headers, umu-launcher, Bubblewrap, xvfb-run, Xwayland, MangoHud and zenity.

  • nix develop opens the shell; .envrc loads it through direnv.
  • tuxbox-fhs <command> runs a command in an FHS environment. The regression and translator checks start Proton's wine directly, which NixOS cannot run otherwise.
  • The shell provides libX11, which the present checks need to detect a rootless Xwayland desktop.
  • examples/lanes/README.md has a short note. The Windows SDK and Proton Experimental are still set up separately.

No runtime, translator or launcher code changes.

Verified on Lanes

  • python tuxbox.py check passed on this branch
  • Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below

This only adds development tooling, so there is no runtime behaviour for a Lanes scenario to cover.

The gate ran through tuxbox-fhs. One regression control, buffer-remap, fails with "remap readback differs"; the other 16 pass. It also failed on this machine on 7b22d71 without these changes, under steam-run. I have not found the cause.

GPU, driver and backend: Radeon RX 9060 XT, RADV (Mesa 26.2.6), Proton Experimental experimental-11.0-20261112, NixOS, kernel 6.18.60

Summary
  passed   Build the shader compiler (12s)
  passed   Python tests (4s)
  passed   Shader compiler tests (9s)
  passed   DXBC tests (1s)
  passed   XG layout tests (1s)
  passed   D3D12 Windows typecheck (2s)
  passed   Build (54s)
  passed   Lanes and fixtures on the GPU (304s)
  FAILED   D3D12 regression controls (105s)
  passed   Shader translator on the GPU (259s)

Checks

nix flake check also passes. No evidence JSON changed.

<!-- greyfinch-sync:brcly/TuxBox:issue:6612136524 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/192). Originally posted by [gtb-sbe](https://github.com/gtb-sbe) on 2026-11-25T19:32:00Z. --- ## Summary Adds a Nix flake with a development shell for x86-64 Linux: Rust 1.95 with the Linux and MSVC targets, Python 3.12 with pefile, `clang-cl`, `lld-link`, LLVM, DXC, cargo-xwin, Vulkan headers, umu-launcher, Bubblewrap, xvfb-run, Xwayland, MangoHud and zenity. - `nix develop` opens the shell; `.envrc` loads it through direnv. - `tuxbox-fhs <command>` runs a command in an FHS environment. The regression and translator checks start Proton's `wine` directly, which NixOS cannot run otherwise. - The shell provides libX11, which the present checks need to detect a rootless Xwayland desktop. - `examples/lanes/README.md` has a short note. The Windows SDK and Proton Experimental are still set up separately. No runtime, translator or launcher code changes. ## Verified on Lanes - [ ] `python tuxbox.py check` passed on this branch - [x] Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below This only adds development tooling, so there is no runtime behaviour for a Lanes scenario to cover. The gate ran through `tuxbox-fhs`. One regression control, `buffer-remap`, fails with "remap readback differs"; the other 16 pass. It also failed on this machine on `7b22d71` without these changes, under `steam-run`. I have not found the cause. GPU, driver and backend: Radeon RX 9060 XT, RADV (Mesa 26.2.6), Proton Experimental `experimental-11.0-20261112`, NixOS, kernel 6.18.60 ``` Summary passed Build the shader compiler (12s) passed Python tests (4s) passed Shader compiler tests (9s) passed DXBC tests (1s) passed XG layout tests (1s) passed D3D12 Windows typecheck (2s) passed Build (54s) passed Lanes and fixtures on the GPU (304s) FAILED D3D12 regression controls (105s) passed Shader translator on the GPU (259s) ``` ## Checks `nix flake check` also passes. No evidence JSON changed.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
brcly/TuxBox!192
No description provided.