lib/pathWith: keep old typename, to avoid breakage in downstream projects

This commit is contained in:
Johannes Kirschbauer 2025-02-19 09:03:18 +07:00
parent 54d9bb9cf7
commit 3f9d8a1fea
No known key found for this signature in database

View file

@ -579,7 +579,7 @@ rec {
absolute ? null,
}:
throwIf (inStore != null && absolute != null && inStore && !absolute) "In pathWith, inStore means the path must be absolute" mkOptionType {
name = "pathWith";
name = "path";
description = (
(if absolute == null then "" else (if absolute then "absolute " else "relative ")) +
"path" +
@ -588,7 +588,7 @@ rec {
descriptionClass = "noun";
merge = mergeEqualOption;
functor = defaultFunctor "pathWith" // {
functor = defaultFunctor "path" // {
type = pathWith;
payload = {inherit inStore absolute; };
binOp = lhs: rhs: if lhs == rhs then lhs else null;