1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/man/apropos.nix
Austin Horstman 76274a2130 tests/man: index.bt -> index.db
Looks like the generated cache is now using index.db
2025-05-07 10:02:56 -05:00

14 lines
301 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)
assertFileExists "$CACHE_DIR/index.db"
'';
};
}