Merge pull request #258330 from Benjamin-L/iamb-man-pages

iamb: install manpages
This commit is contained in:
Thiago Kenji Okada 2023-10-19 18:12:04 +01:00 committed by GitHub
commit 4113272f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";