This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/lib/importFlake.nix

12 lines
342 B
Nix
Raw Permalink Normal View History

{system}: let
2023-01-16 09:02:58 +00:00
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
flake-compat = fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
};
in
(import flake-compat) {
src = ../.;
2023-01-16 09:02:58 +00:00
inherit system;
}