♻️ backwards compatibility for non-flake systems

This commit is contained in:
2022-05-08 14:06:24 -04:00
parent ea5ba53e3c
commit ef245c59a7
4 changed files with 58 additions and 29 deletions

13
default.nix Normal file
View File

@ -0,0 +1,13 @@
(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