2023-02-16 11:58:20 +03:00
|
|
|
# This file provides backward compatibility to nix < 2.4 clients
|
2023-04-02 16:41:25 +03:00
|
|
|
{ system ? builtins.currentSystem, src ? ./. }:
|
2023-02-16 11:58:20 +03:00
|
|
|
let
|
2024-01-01 05:02:38 +03:00
|
|
|
lock = builtins.fromJSON (builtins.readFile ./dev/private/flake.lock);
|
2023-04-02 16:41:25 +03:00
|
|
|
inherit (lock.nodes.flake-compat.locked) owner repo rev narHash;
|
|
|
|
|
|
|
|
flake-compat = fetchTarball {
|
|
|
|
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
|
|
|
sha256 = narHash;
|
2023-02-27 13:57:00 +03:00
|
|
|
};
|
|
|
|
|
2023-04-02 16:41:25 +03:00
|
|
|
flake = import flake-compat { inherit src system; };
|
2023-02-16 11:58:20 +03:00
|
|
|
in
|
2023-02-27 13:57:00 +03:00
|
|
|
flake.defaultNix
|