feat(nix): migrate to Nix Flakes

Fixes SDP-28
This commit is contained in:
Harsh Shandilya 2022-12-17 23:32:19 +00:00
parent ffbc5af2d9
commit 341a85ad5c
6 changed files with 241 additions and 53 deletions

6
default.nix Normal file
View file

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