depot/lib/hours.nix

16 lines
347 B
Nix
Raw Permalink Normal View History

2023-08-31 01:55:45 +03:00
{ config, inputs, lib, self, withSystem, ... }:
let
inherit (lib) const mapAttrs;
in
{
2024-07-16 15:07:30 +03:00
lib.summon = system: f: let
2023-08-31 01:55:45 +03:00
lift = config;
2024-07-16 15:07:30 +03:00
in withSystem system ({ config, inputs', self', ... }: f {
2023-08-31 01:55:45 +03:00
depot = self // self' // lift // config // {
inputs = mapAttrs (name: const (inputs.${name} // inputs'.${name})) inputs;
};
});
}