diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-11-04 01:14:28 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-11-03 22:47:36 -0800 |
commit | db530f4490d7474e253bfe01b582d7b755e35799 (patch) | |
tree | b574fd656a77fd5f62d21eb2b96dfc655eef11ff /pkgs | |
parent | c4097c116e5f7ed5637437908771e0ed0ddf2e13 (diff) |
i3status-rust: add missing ethtool and notmuch buildInputs
i3status-rust requires `ethtool` for the net block to work since 0.14.2.
The notmuch feature is also available and all we've to do for that is to
pass the `notmuch` input and enable the feature.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/window-managers/i3/status-rust.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/applications/window-managers/i3/status-rust.nix b/pkgs/applications/window-managers/i3/status-rust.nix index f6acf5698f4c..a1900deb2257 100644 --- a/pkgs/applications/window-managers/i3/status-rust.nix +++ b/pkgs/applications/window-managers/i3/status-rust.nix @@ -1,4 +1,13 @@ -{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }: +{ stdenv +, rustPlatform +, fetchFromGitHub +, pkgconfig +, makeWrapper +, dbus +, libpulseaudio +, notmuch +, ethtool +}: rustPlatform.buildRustPackage rec { pname = "i3status-rust"; @@ -13,9 +22,17 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1dcfclk8lbqvq2hywr80jm63p1i1kz3893zq99ipgryia46vd397"; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig makeWrapper ]; - buildInputs = [ dbus libpulseaudio ]; + buildInputs = [ dbus libpulseaudio notmuch ]; + + cargoBuildFlags = [ + "--features=notmuch" + ]; + + postFixup = '' + wrapProgram $out/bin/i3status-rs --prefix PATH : "${ethtool}/bin" + ''; # Currently no tests are implemented, so we avoid building the package twice doCheck = false; |