forked from Fediversity/Fediversity
fix pathFromRoot
to work on strings, as its removePrefix
does not actually work with store versions of sub-folders
This commit is contained in:
parent
cc51661ac2
commit
f74b692418
1 changed files with 1 additions and 2 deletions
|
@ -32,11 +32,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
pathFromRoot = mkOption {
|
pathFromRoot = mkOption {
|
||||||
type = types.path;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Path from the root of the repository to the working directory.
|
Path from the root of the repository to the working directory.
|
||||||
'';
|
'';
|
||||||
apply = x: lib.path.removePrefix config.pathToRoot x;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pathToCwd = mkOption {
|
pathToCwd = mkOption {
|
||||||
|
|
Loading…
Add table
Reference in a new issue