mirror of
https://github.com/nix-community/srvos.git
synced 2024-08-17 01:40:26 +03:00
This allows us to have private dev inputs that we can use in the main flake and move the github actions checks to buildbot.
15 lines
464 B
Nix
15 lines
464 B
Nix
# This file provides backward compatibility to nix < 2.4 clients
|
|
{ system ? builtins.currentSystem, src ? ./. }:
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./dev/private/flake.lock);
|
|
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;
|
|
};
|
|
|
|
flake = import flake-compat { inherit src system; };
|
|
in
|
|
flake.defaultNix
|