Unverified Commit f0667dc5 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

i3status-rust: Add manpage to output (#439523)

parents 32bfa80c d56c2c02
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 = ''