diff --git a/pkgs/by-name/i3/i3status-rust/package.nix b/pkgs/by-name/i3/i3status-rust/package.nix index 9e0040faad70..d3f6491649fa 100644 --- a/pkgs/by-name/i3/i3status-rust/package.nix +++ b/pkgs/by-name/i3/i3status-rust/package.nix @@ -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 = ''