diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..00b6580 --- /dev/null +++ b/default.nix @@ -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