nixos/mandoc: don't create leading double slashes in MANPATH

This commit is contained in:
sternenseemann
2023-12-24 18:44:36 +01:00
parent ad235e5072
commit 4cf470c97c
+1 -1
View File
@@ -190,7 +190,7 @@ in
'';
# tell mandoc the paths containing man pages
profileRelativeSessionVariables."MANPATH" = map (path: "/${path}") cfg.manPath;
profileRelativeSessionVariables."MANPATH" = map (path: if builtins.substring 0 1 path != "/" then "/${path}" else path) cfg.manPath;
};
};
}