feat(nix): add comprehensive Nix flake for linux-rust

This commit is contained in:
doprz
2025-12-12 18:13:57 -06:00
committed by Kavish Devar
parent e2d17b8bae
commit 376c54247b
6 changed files with 278 additions and 59 deletions

12
shell.nix Normal file
View File

@@ -0,0 +1,12 @@
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
nodeName = lock.nodes.root.inputs.flake-compat;
in
fetchTarball {
url =
lock.nodes.${nodeName}.locked.url
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz";
sha256 = lock.nodes.${nodeName}.locked.narHash;
}
) { src = ./.; }).shellNix