mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-24 23:14:12 +03:00
feat: init docs (WIP)
This commit is contained in:
parent
484a95ef9d
commit
9806104d2b
@ -9,7 +9,7 @@ in {
|
||||
repoRoot = l.mkOption {
|
||||
type = t.path;
|
||||
description = "The root of the current repo. Eg. 'self' in a flake";
|
||||
example = lib.literalExample ''
|
||||
example = lib.literalExpression ''
|
||||
self
|
||||
'';
|
||||
};
|
||||
@ -17,16 +17,13 @@ in {
|
||||
cacheFileRel = l.mkOption {
|
||||
type = t.str;
|
||||
description = "Location of the cache file relative to the repoRoot";
|
||||
example = lib.literalExample ''
|
||||
example = lib.literalExpression ''
|
||||
/rel/path/to/my/package/cache.json
|
||||
'';
|
||||
};
|
||||
|
||||
# LOCAL OPTIONS
|
||||
enable = l.mkEnableOption {
|
||||
description =
|
||||
"Whether to enable the evaluation cache for this derivation";
|
||||
};
|
||||
enable = l.mkEnableOption "the evaluation cache for this derivation";
|
||||
|
||||
content = l.mkOption {
|
||||
type = t.submodule {
|
||||
|
@ -10,6 +10,7 @@
|
||||
makeDrv = module: let
|
||||
evaled = lib.evalModules {
|
||||
modules = [
|
||||
inputs.drv-parts.modules.drv-parts.docs
|
||||
module
|
||||
evalCacheSetup
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user