2020-11-04 00:14:28 +00:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, makeWrapper
|
|
|
|
, dbus
|
|
|
|
, libpulseaudio
|
|
|
|
, notmuch
|
|
|
|
, ethtool
|
|
|
|
}:
|
2017-11-13 20:37:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-05-06 20:32:03 +01:00
|
|
|
pname = "i3status-rust";
|
2020-12-04 14:20:22 +00:00
|
|
|
version = "0.14.3";
|
2017-11-13 20:37:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greshake";
|
2019-05-06 20:32:03 +01:00
|
|
|
repo = pname;
|
2019-07-15 20:53:46 +01:00
|
|
|
rev = "v${version}";
|
2020-12-04 14:20:22 +00:00
|
|
|
sha256 = "1k9dgmd4wz9950kr35da31rhph43gmvg8dif7hg1xw41xch6bi60";
|
2017-11-13 20:37:02 +00:00
|
|
|
};
|
|
|
|
|
2020-12-04 14:20:22 +00:00
|
|
|
cargoSha256 = "0qqkcgl9iz4kxl1a2vv2p7vy7wxn970y28jynf3n7hfp16i3liy2";
|
2017-11-13 20:37:02 +00:00
|
|
|
|
2020-11-04 00:14:28 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
2017-11-13 20:37:02 +00:00
|
|
|
|
2020-11-04 00:14:28 +00:00
|
|
|
buildInputs = [ dbus libpulseaudio notmuch ];
|
|
|
|
|
|
|
|
cargoBuildFlags = [
|
|
|
|
"--features=notmuch"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/i3status-rs --prefix PATH : "${ethtool}/bin"
|
|
|
|
'';
|
2019-02-17 17:19:26 +00:00
|
|
|
|
|
|
|
# Currently no tests are implemented, so we avoid building the package twice
|
|
|
|
doCheck = false;
|
2017-11-13 20:37:02 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Very resource-friendly and feature-rich replacement for i3status";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/greshake/i3status-rust";
|
2017-11-13 20:37:02 +00:00
|
|
|
license = licenses.gpl3;
|
2020-02-03 06:04:38 +00:00
|
|
|
maintainers = with maintainers; [ backuitist globin ma27 ];
|
2017-11-13 20:37:02 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|