Skip to content

feat(nix): add aarch64-linux (Jetson) devShell#255

Open
felixmaximilian wants to merge 1 commit into
mainfrom
chore/flake-aarch64-linux
Open

feat(nix): add aarch64-linux (Jetson) devShell#255
felixmaximilian wants to merge 1 commit into
mainfrom
chore/flake-aarch64-linux

Conversation

@felixmaximilian

Copy link
Copy Markdown
Contributor

Problem

nix develop on the Jetson kits (e.g. delta-dev1, aarch64-linux) fails:

error: flake ... does not provide attribute 'devShells.aarch64-linux.default'

The flake only defined x86_64-linux and aarch64-darwin devShells.

Change

Add devShells.aarch64-linux.default, mirroring the x86_64-linux shell (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:

  • prepends the system CUDA/driver dirs to LD_LIBRARY_PATH (/usr/local/cuda/lib64, /usr/lib/aarch64-linux-gnu/{nvidia,tegra}) so uv-installed wheels (torch, etc.) find CUDA at runtime
  • points TRITON_LIBCUDA_PATH at the JetPack driver dir (/run/opengl-driver/lib is a NixOS-only path and doesn't exist here)

Test

Verified on delta-dev1 (aarch64 Jetson): nix develop enters successfully, uv --version0.11.16 (aarch64-unknown-linux-gnu), and git/just/nushell resolve.

🤖 Generated with Claude Code

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
koritsky self-requested a review July 8, 2026 15:49
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