iamb: install manpages

This commit is contained in:
Benjamin Lee 2023-09-30 13:11:23 -07:00
parent 8a86b98f0b
commit 4a5788dea6
No known key found for this signature in database
GPG Key ID: FB9624E2885D55A4

View File

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, darwin
, stdenv
}:
@ -18,10 +19,16 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-UbmeEcmUr3zx05Hk36tjsl0Y9ay7DNM1u/3lPqlXN2o=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
];
postInstall = ''
OUT_DIR=$releaseDir/build/iamb-*/out
installManPage $OUT_DIR/iamb.{1,5}
'';
meta = with lib; {
description = "A Matrix client for Vim addicts";
homepage = "https://github.com/ulyssa/iamb";