Skip to content

Commit 1e50120

Browse files
committed
pkgs/doc: use root = toString
1 parent 470537e commit 1e50120

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkgs/doc.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ let
2020
transformOptions = opt: opt // {
2121
declarations = map (decl:
2222
let
23-
root = toString ../.;
2423
declStr = toString decl;
25-
declPath = lib.removePrefix (toString ../.) decl;
24+
declPath = lib.removePrefix root decl;
2625
in
2726
if lib.hasPrefix root declStr
2827
# Rewrite links from ../. in the /nix/store to the source on Github

0 commit comments

Comments
 (0)