migrate to nix flake

This commit is contained in:
2023-03-25 12:43:23 +02:00
parent 8a77c3e232
commit 9f30e924c1
8 changed files with 101 additions and 9 deletions

6
nixpkgs.nix Normal file
View File

@@ -0,0 +1,6 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
spec = lock.nodes.nixpkgs.locked;
nixpkgs = fetchTarball "https://github.com/${spec.owner}/${spec.repo}/archive/${spec.rev}.tar.gz";
in
import nixpkgs