Commit 4cf470c9 authored by sternenseemann's avatar sternenseemann
Browse files

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

parent ad235e50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    };
  };
}