1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

nix/tests: run test help.sh only if nix is built with documentation

tests/functional/help.sh calls nix-* commands with option --help
if nix is built without documentation the option --help throws an error
because the man page it wants to display is missing
This commit is contained in:
Marian Hammer 2024-10-18 11:06:41 +02:00
parent 694c378d14
commit 85b0cd320a
No known key found for this signature in database
3 changed files with 10 additions and 2 deletions

View file

@ -207,9 +207,10 @@ in {
git
mercurial
openssh
man # for testing `nix-* --help`
] ++ lib.optionals (doInstallCheck || enableManual) [
jq # Also for custom mdBook preprocessor.
] ++ lib.optionals enableManual [
man
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
;