mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-27 14:51:15 +03:00
e654ffaa10
- add documentation to the subsystem-loading interface - expose evaled modules publicly via `framework` - add option config.modules to allow users to include their own modules - update examples for extending dream2nix
23 lines
515 B
Nix
23 lines
515 B
Nix
{dlib, ...}: {
|
|
subsystems.hello = {
|
|
discoverers.default = {subsystem, ...}: {
|
|
discover = {tree}: [
|
|
(dlib.construct.discoveredProject {
|
|
inherit subsystem;
|
|
inherit (tree) relPath;
|
|
name = "hello";
|
|
translators = ["dummy"];
|
|
subsystemInfo = {};
|
|
})
|
|
];
|
|
};
|
|
builders.dummy = {...}: {
|
|
type = "pure";
|
|
build = {hello, ...}: {...}: {
|
|
packages.${hello.pname}.${hello.version} =
|
|
hello;
|
|
};
|
|
};
|
|
};
|
|
}
|