diff options
author | aleksana <me@aleksana.moe> | 2023-08-03 14:48:29 +0800 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-12-24 18:44:36 +0100 |
commit | ab222895b13252df722fa8f7038d2fd91fd884d9 (patch) | |
tree | bb8e449c31e0184329ec1bc13ec2bd36f82634b2 /nixos/modules | |
parent | 5f64a12a728902226210bf01d25ec6cbb9d9265b (diff) |
nixos/mandoc: fix paths don't exist failure
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/misc/mandoc.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/misc/mandoc.nix b/nixos/modules/misc/mandoc.nix index 9bcef5b1a09bd..9f9eff7914893 100644 --- a/nixos/modules/misc/mandoc.nix +++ b/nixos/modules/misc/mandoc.nix @@ -5,7 +5,8 @@ let cfg = config.documentation.man.mandoc; -in { +in +{ meta.maintainers = [ lib.maintainers.sternenseemann ]; options = { @@ -52,11 +53,10 @@ in { # TODO(@sternenseemman): fix symlinked directories not getting indexed, # see: https://inbox.vuxu.org/mandoc-tech/20210906171231.GF83680@athene.usta.de/T/#e85f773c1781e3fef85562b2794f9cad7b2909a3c extraSetup = lib.mkIf config.documentation.man.generateCaches '' - ${makewhatis} -T utf8 ${ - lib.concatMapStringsSep " " (path: - "$out/" + lib.escapeShellArg path - ) cfg.manPath - } + for man_path in ${lib.escapeShellArg (map (path: "$out/${path}") cfg.manPath)} + do + [[ -d "$man_path" ]] && ${makewhatis} -T utf8 $man_path + done ''; }; }; |