Make flakelite a functor as a shortcut for mkFlake

This commit is contained in:
Archit Gupta 2023-04-20 19:07:10 -07:00
parent 59ccd592a3
commit bd68bc5c44
2 changed files with 7 additions and 4 deletions

View File

@ -465,4 +465,7 @@ let
(_: root'.outputs)
];
in
exports
{
lib = exports;
__functor = _: mkFlake;
}

View File

@ -6,10 +6,10 @@
inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
outputs = inputs:
let
flakelite.lib = import ./. inputs;
flakelite = import ./. inputs;
in
flakelite.lib.mkFlake ./. {
flakelite ./. {
nixDir = ./.;
outputs = flakelite;
outputs = _: flakelite;
};
}