use the recommended way of using flake-compat

This commit is contained in:
chayleaf
2023-02-16 20:31:02 +07:00
parent 529031f44f
commit 3f23792df0
3 changed files with 29 additions and 11 deletions

View File

@ -1,13 +1,10 @@
(
import
(import
(
builtins.fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz";
sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2";
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
{ src = ./.; }
).defaultNix