fix pathFromRoot to work on strings, as its removePrefix does not actually work with store versions of sub-folders

This commit is contained in:
Kiara Grouwstra 2025-08-31 19:15:45 +02:00
parent cc51661ac2
commit f74b692418
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -32,11 +32,10 @@ in
};
pathFromRoot = mkOption {
type = types.path;
type = types.str;
description = ''
Path from the root of the repository to the working directory.
'';
apply = x: lib.path.removePrefix config.pathToRoot x;
};
pathToCwd = mkOption {