mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
18 lines
407 B
Nix
18 lines
407 B
Nix
{
|
|
config = {
|
|
programs.man = {
|
|
enable = true;
|
|
generateCaches = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.manpath
|
|
|
|
CACHE_DIR=$(cat $TESTED/home-files/.manpath | cut --delimiter=' ' --fields=3)
|
|
|
|
if [[ ! -f "$CACHE_DIR/index.bt" ]]; then
|
|
fail "Expected man cache files to exist (in $CACHE_DIR) but they were not found."
|
|
fi
|
|
'';
|
|
};
|
|
}
|