aboutsummaryrefslogtreecommitdiff
path: root/nix/flake-compat.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/flake-compat.nix')
-rw-r--r--nix/flake-compat.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nix/flake-compat.nix b/nix/flake-compat.nix
new file mode 100644
index 00000000..8b6cb99c
--- /dev/null
+++ b/nix/flake-compat.nix
@@ -0,0 +1,9 @@
+let
+ lock = builtins.fromJSON (builtins.readFile ../flake.lock);
+ inherit (lock.nodes.flake-compat.locked) rev narHash;
+ flake-compat = fetchTarball {
+ url = "https://github.com/edolstra/flake-compat/archive/${rev}.tar.gz";
+ sha256 = narHash;
+ };
+in
+import flake-compat { src = ../.; }