Skip to content

nix: add a development shell - #192

Merged
brcly merged 4 commits into
brcly:mainfrom
gtb-sbe:nix-flake
Nov 25, 2026
Merged

brcly merged 4 commits into
brcly:mainfrom
gtb-sbe:nix-flake

Conversation

@gtb-sbe

@gtb-sbe gtb-sbe commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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.

@brcly
brcly merged commit 99c76e9 into brcly:main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants