2019-02-17 17:19:26 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }:
|
2017-11-13 20:37:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-05-06 20:32:03 +01:00
|
|
|
pname = "i3status-rust";
|
2019-07-15 20:53:46 +01:00
|
|
|
version = "0.10.0";
|
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}";
|
|
|
|
sha256 = "0i1k884ha08w7r5q5z012q2w7hs333b3c18hkbrhamknpvy6c2i0";
|
2017-11-13 20:37:02 +00:00
|
|
|
};
|
|
|
|
|
2019-07-15 20:53:46 +01:00
|
|
|
cargoSha256 = "1w43k3ld9ra7blbn593mpi8qg5pgcglwqwddkrb55yxnpnkaxvzy";
|
2017-11-13 20:37:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2019-02-17 17:19:26 +00:00
|
|
|
buildInputs = [ dbus libpulseaudio ];
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
homepage = https://github.com/greshake/i3status-rust;
|
|
|
|
license = licenses.gpl3;
|
2019-08-20 18:36:05 +01:00
|
|
|
maintainers = with maintainers; [ backuitist globin ];
|
2017-11-13 20:37:02 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|