1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/tests/modules/programs/man/apropos.nix

23 lines
447 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
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
'';
};
}