mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
32 lines
657 B
Nix
32 lines
657 B
Nix
{
|
|
config = {
|
|
programs.man = {
|
|
enable = false;
|
|
man-db.enable = false;
|
|
mandoc.enable = true;
|
|
generateCaches = true;
|
|
};
|
|
|
|
test.stubs = {
|
|
mandoc = {
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p $out/bin
|
|
touch $out/bin/{man,makewhatis}
|
|
chmod +x $out/bin/*
|
|
'';
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
hmSessVars=home-path/etc/profile.d/hm-session-vars.sh
|
|
|
|
assertPathNotExists home-files/.manpath
|
|
assertPathNotExists home-files/.local/share/mandoc/man
|
|
|
|
assertFileExists "$hmSessVars"
|
|
assertFileNotRegex "$hmSessVars" 'MANPATH='
|
|
'';
|
|
};
|
|
}
|