Commit baf250e5 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixfmt-rs: fix manpage installation

we need to actual build the manpage
parent 786a0a8b
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -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;