srvos/default.nix
zimbatm e896b8f419
introduce dev flake
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.
2023-04-03 16:10:38 +02:00

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