add nix flake for development shell

It does not support cross compilation but requires x86_64-linux.
This commit is contained in:
2025-09-05 13:09:47 +02:00
parent d959eaab98
commit 34e39dc2b6
5 changed files with 73 additions and 0 deletions

9
nix.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
# Run a shell inside of the nix-based development environment.
set -eu
cd "$(dirname "$0")"
exec nix --experimental-features 'nix-command flakes' develop path:./nix --command "${SHELL:-sh}"