invoke man(1) when requesting help

This commit invokes `man(1)` when requesting help and emits the built-in
manual, if the manual page is not found on the system.
This commit is contained in:
Emil Engler
2023-04-16 10:47:15 +02:00
parent 096c811491
commit 13cc7e05ed
5 changed files with 67 additions and 3 deletions

View File

@@ -61,6 +61,7 @@
# source files relevant for rust
src = pkgs.lib.sourceByRegex ./. [
"Cargo\\.(toml|lock)"
"build.rs"
"(src|benches)(/.*\\.(rs|md))?"
"rp"
];
@@ -111,6 +112,7 @@
nativeBuildInputs = with pkgs; [
p.stdenv.cc
cmake # for oqs build in the oqs-sys crate
mandoc # for the built-in manual
makeWrapper # for the rp shellscript
pkg-config # let libsodium-sys-stable find libsodium
removeReferencesTo