feat: init docs (WIP)

This commit is contained in:
DavHau 2023-02-28 00:00:25 +07:00
parent 484a95ef9d
commit 9806104d2b
2 changed files with 4 additions and 6 deletions

View File

@ -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 {

View File

@ -10,6 +10,7 @@
makeDrv = module: let
evaled = lib.evalModules {
modules = [
inputs.drv-parts.modules.drv-parts.docs
module
evalCacheSetup
];