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
This commit is contained in:
parent
0acbd11806
commit
0825a0922a
1 changed files with 15 additions and 0 deletions
15
shell.nix
Normal file
15
shell.nix
Normal file
|
|
@ -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 { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue