zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
{
  npins ? import ../npins,
  lib ? import "${(import ../npins).nixpkgs}/lib",
  ...
}:

let
  haumea = import npins.haumea { inherit lib; };

in
(haumea.load {
  src = ./.;
  transformer =
    name: value:
    (
      if name == [ ] then value else (if (builtins.hasAttr "default" value) then value.default else value)
    );
  loader = [
    (haumea.matchers.always haumea.loaders.path)
  ];
})