add flake-compat

This commit is contained in:
raf 2024-05-11 04:54:22 +03:00
parent e5951daa3d
commit 848533c323
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

19
default.nix Normal file
View file

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