Skip to content

Commit

Permalink
Adding default.nix for flake-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
arthsmn committed Jan 1, 2025
1 parent 60611b8 commit 180db3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(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

0 comments on commit 180db3c

Please sign in to comment.