jaq: generate manpage
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
runCommand,
|
||||
jotdown,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
@@ -26,6 +27,20 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
];
|
||||
doInstallCheck = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
jotdown # for manpage
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
pushd docs || true
|
||||
make jaq.1
|
||||
popd
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -D docs/jaq.1 -t $out/share/man/man1
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex=^v(\\d+\\.\\d+\\.\\d+)$" ];
|
||||
|
||||
Reference in New Issue
Block a user