Skip to content

Commit

Permalink
lib/pathWith: keep old typename, to avoid breakage in downstream proj…
Browse files Browse the repository at this point in the history
…ects
  • Loading branch information
hsjobeki committed Feb 19, 2025
1 parent 54d9bb9 commit 3f9d8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand All @@ -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;
Expand Down

0 comments on commit 3f9d8a1

Please sign in to comment.