fend: install man page

This commit is contained in:
Rhys Davies 2022-10-11 01:33:52 +13:00
parent 40d1ee5bb4
commit 852bf558eb
No known key found for this signature in database

View file

@ -3,6 +3,8 @@
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
, darwin , darwin
, pandoc
, installShellFiles
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -18,8 +20,18 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-jGPS9x4DKQCXZkaJu9qIEqoxIu+1WraqfqxGFRV5z7A="; cargoSha256 = "sha256-jGPS9x4DKQCXZkaJu9qIEqoxIu+1WraqfqxGFRV5z7A=";
nativeBuildInputs = [ pandoc installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
postBuild = ''
patchShebangs --build ./documentation/build.sh
./documentation/build.sh
'';
preFixup = ''
installManPage documentation/fend.1
'';
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''