i3status-rust: Add manpage to output (#439523)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
makeWrapper,
|
||||
installShellFiles,
|
||||
dbus,
|
||||
libpulseaudio,
|
||||
notmuch,
|
||||
@@ -12,6 +13,7 @@
|
||||
lm_sensors,
|
||||
iw,
|
||||
iproute2,
|
||||
pandoc,
|
||||
pipewire,
|
||||
withICUCalendar ? false,
|
||||
withPipewire ? true,
|
||||
@@ -34,6 +36,8 @@ rustPlatform.buildRustPackage rec {
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
pandoc
|
||||
]
|
||||
++ (lib.optionals withPipewire [ rustPlatform.bindgenHook ]);
|
||||
|
||||
@@ -59,9 +63,14 @@ rustPlatform.buildRustPackage rec {
|
||||
--replace "/usr/share/i3status-rust" "$out/share"
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
cargo xtask generate-manpage
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
cp -R examples files/* $out/share
|
||||
installManPage man/*
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
||||
Reference in New Issue
Block a user