Files
clan-core/lib/build-clan/function-adapter.nix
2025-04-08 08:53:29 +02:00

28 lines
400 B
Nix

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