feat(nix): add aarch64-linux (Jetson) devShell#255
Open
felixmaximilian wants to merge 1 commit into
Open
Conversation
The flake only defined x86_64-linux and aarch64-darwin devShells, so `nix develop` on the Jetson kits (aarch64-linux) failed with "does not provide attribute devShells.aarch64-linux.default". Mirror the x86_64-linux shell for aarch64-linux, but source CUDA from the system JetPack install (apt: nvidia-jetpack) rather than nixpkgs: wire the driver/runtime libs into LD_LIBRARY_PATH and point TRITON_LIBCUDA_PATH at the JetPack driver dir (/run/opengl-driver/lib doesn't exist off NixOS). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
koritsky
self-requested a review
July 8, 2026 15:49
koritsky
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
nix developon the Jetson kits (e.g.delta-dev1,aarch64-linux) fails:The flake only defined
x86_64-linuxandaarch64-darwindevShells.Change
Add
devShells.aarch64-linux.default, mirroring thex86_64-linuxshell (same tooling: nushell/git/git-lfs/uv-wrapped/ytt/just/prek/skim/openssl/ffmpeg).Key difference: on Jetson, CUDA comes from the system JetPack install (
apt: nvidia-jetpack), not nixpkgs. So the shell:LD_LIBRARY_PATH(/usr/local/cuda/lib64,/usr/lib/aarch64-linux-gnu/{nvidia,tegra}) so uv-installed wheels (torch, etc.) find CUDA at runtimeTRITON_LIBCUDA_PATHat the JetPack driver dir (/run/opengl-driver/libis a NixOS-only path and doesn't exist here)Test
Verified on
delta-dev1(aarch64 Jetson):nix developenters successfully,uv --version→0.11.16 (aarch64-unknown-linux-gnu), and git/just/nushell resolve.🤖 Generated with Claude Code