summaryrefslogtreecommitdiff
path: root/lib/types.nix
diff options
context:
space:
mode:
authorJohannes Kirschbauer <hsjobeki@gmail.com>2025-02-19 09:03:18 +0700
committerJohannes Kirschbauer <hsjobeki@gmail.com>2025-02-19 09:03:18 +0700
commit3f9d8a1fea87660f8d0d5ad78f5a10737cd498cf (patch)
tree9b2fe8f1304acf234e38c662b839c480f333af20 /lib/types.nix
parenterlang_28: init at 28.0-rc1 (#382722) (diff)
downloadnixpkgs-3f9d8a1fea87660f8d0d5ad78f5a10737cd498cf.tar.gz
lib/pathWith: keep old typename, to avoid breakage in downstream projects
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 07d8a28d1394..069d7b170327 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -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;