nixfmt-rs: fix manpage installation

we need to actual build the manpage
This commit is contained in:
Jörg Thalheim
2026-05-03 11:54:37 +02:00
parent 786a0a8b2f
commit baf250e5c6
+10 -2
View File
@@ -3,6 +3,7 @@
rustPlatform,
fetchFromGitHub,
installShellFiles,
scdoc,
versionCheckHook,
nix-update-script,
nixfmt,
@@ -25,10 +26,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-fadjOtfB8bFuhTN9mAmi2A526boW7Aje39IBjdxszok=";
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
scdoc
];
postBuild = ''
scdoc < docs/nixfmt.1.scd > nixfmt.1
'';
postInstall = ''
installManPage docs/*
installManPage nixfmt.1
'';
doInstallCheck = true;