Add build-clan module
This commit is contained in:
18
lib/build-clan/eval.nix
Normal file
18
lib/build-clan/eval.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
lib,
|
||||
nixpkgs,
|
||||
clan-core,
|
||||
specialArgs ? { },
|
||||
}:
|
||||
# Returns a function that takes self, which should point to the directory of the flake
|
||||
{ self }:
|
||||
module:
|
||||
(lib.evalModules {
|
||||
specialArgs = {
|
||||
inherit self clan-core nixpkgs;
|
||||
} // specialArgs;
|
||||
modules = [
|
||||
./interface.nix
|
||||
module
|
||||
];
|
||||
}).config
|
||||
Reference in New Issue
Block a user