2019-02-17 18:19:26 +01:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }:
|
2017-11-13 21:37:02 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-05-06 21:32:03 +02:00
|
|
|
pname = "i3status-rust";
|
2019-12-11 20:03:27 +01:00
|
|
|
version = "0.12.0";
|
2017-11-13 21:37:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greshake";
|
2019-05-06 21:32:03 +02:00
|
|
|
repo = pname;
|
2019-07-15 21:53:46 +02:00
|
|
|
rev = "v${version}";
|
2019-12-11 20:03:27 +01:00
|
|
|
sha256 = "1banaiqj4gdsg886kb7l1fxhmf33vxnwwha46397s7gwfxkvxz4n";
|
2017-11-13 21:37:02 +01:00
|
|
|
};
|
|
|
|
|
2019-10-07 18:58:57 +02:00
|
|
|
cargoSha256 = "1cbx2jll0bj547dvwzjprzidndbqn1c4c6hmbfgjgdkxmmrpb0r1";
|
2017-11-13 21:37:02 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2019-02-17 18:19:26 +01:00
|
|
|
buildInputs = [ dbus libpulseaudio ];
|
|
|
|
|
|
|
|
# Currently no tests are implemented, so we avoid building the package twice
|
|
|
|
doCheck = false;
|
2017-11-13 21:37:02 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Very resource-friendly and feature-rich replacement for i3status";
|
|
|
|
homepage = https://github.com/greshake/i3status-rust;
|
|
|
|
license = licenses.gpl3;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ backuitist globin ];
|
2017-11-13 21:37:02 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|