mirror of
https://github.com/nix-community/srvos.git
synced 2024-10-26 17:49:54 +03:00
e896b8f419
Keep the number of exposed inputs from the top-level flake small by splitting the development environment into its own flake. The .envrc uses `--override-input srvos path:$PATH` so that the srvos path always get re-calculated on reload, but not recorded. Since the hash of srvos is stored inside of srvos, it would infinitely update otherwise.
15 lines
456 B
Nix
15 lines
456 B
Nix
# This file provides backward compatibility to nix < 2.4 clients
|
|
{ system ? builtins.currentSystem, src ? ./. }:
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./dev/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
|