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
27 lines
671 B
Nix
27 lines
671 B
Nix
{
|
|
translators.dummy = {...}: {
|
|
type = "pure";
|
|
name = "dummy";
|
|
subsystem = "hello";
|
|
translate = {hello, ...}: {...}: {
|
|
result = {
|
|
_generic = {
|
|
subsystem = "hello";
|
|
defaultPackage = "hello";
|
|
location = "";
|
|
sourcesAggregatedHash = null;
|
|
packages = {${hello.pname} = hello.version;};
|
|
};
|
|
_subsystem = {};
|
|
cyclicDependencies = {};
|
|
dependencies.${hello.pname}.${hello.version} = [];
|
|
sources.${hello.pname}.${hello.version} = {
|
|
type = "http";
|
|
url = hello.src.url;
|
|
hash = hello.src.outputHash;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|