zaphyra's git: haumea

fork of https://github.com/nix-community/haumea

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
{ lib }:

let
  inherit (builtins)
    mapAttrs
    ;
  inherit (lib)
    functionArgs
    pipe
    toFunction
    ;
in

importer:

inputs: path:

let
  f = toFunction (importer path);
in

pipe f [
  functionArgs
  (mapAttrs (name: _: inputs.${name}))
  f
]