jaq: generate manpage (#549456)

This commit is contained in:
Gaétan Lepage
2026-08-05 09:07:02 +00:00
committed by GitHub
+15
View File
@@ -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+)$" ];