fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Damien Cassouman: support building manual page index cache472ca211

master
447 B22 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.man = {
8      enable = true;
9      generateCaches = true;
10    };
11
12    nmt.script = ''
13      assertFileExists home-files/.manpath
14
15      CACHE_DIR=$(cat $TESTED/home-files/.manpath | cut --delimiter=' ' --fields=3)
16
17      if [[ ! -f "$CACHE_DIR/index.bt" ]]; then
18          fail "Expected man cache files to exist (in $CACHE_DIR) but they were not found."
19      fi
20    '';
21  };
22}