Files
clan-core/lib/build-clan/eval.nix
2024-08-04 13:06:51 +07:00

20 lines
327 B
Nix

{
lib,
nixpkgs,
clan-core,
specialArgs ? { },
self,
}:
# Returns a function that takes self, which should point to the directory of the flake
module:
(lib.evalModules {
specialArgs = {
inherit self clan-core nixpkgs;
};
modules = [
./interface.nix
module
{ inherit specialArgs; }
];
}).config