Skip to content

Commit 180db3c

Browse files
committed
Adding default.nix for flake-compat
1 parent 60611b8 commit 180db3c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

default.nix

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(import (
2+
let
3+
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
4+
nodeName = lock.nodes.root.inputs.flake-compat;
5+
in
6+
fetchTarball {
7+
url =
8+
lock.nodes.${nodeName}.locked.url
9+
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz";
10+
sha256 = lock.nodes.${nodeName}.locked.narHash;
11+
}
12+
) {src = ./.;})
13+
.defaultNix

0 commit comments

Comments
 (0)