From 0825a0922a5d677f5f984bb79524569bbd1f9954 Mon Sep 17 00:00:00 2001 From: teto <886074+teto@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:24:02 +0100 Subject: [PATCH] feat: introduce nix-shell flakes are not stable yet, community is divided but maintaining both flake and a set of dependencies in our scripts is hard. So provide a nix-shell that fetches the nixpkgs recorded in the flake.lock to keep a single source of truth --- shell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..f983d48d --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +let + nixpkgs = ( + import ( + let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + n = lock.nodes.nixpkgs.locked; + in + fetchTarball { + url = "https://github.com/${n.owner}/${n.repo}/archive/${n.rev}.tar.gz"; + sha256 = n.narHash; + } + ) { } + ); +in +nixpkgs.callPackage ./home-manager { }