31 lines
886 B
Nix
31 lines
886 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "i3status-rust";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greshake";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "047ivrp70kwsm4792ing8dvgh161cmayzy9ij6ww61fbkb4slr1i";
|
|
};
|
|
|
|
cargoSha256 = "16rgg0fy50n0z0kal52iaxiqwhw4qpjvzyqwaldm29fq9c0105d1";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ dbus libpulseaudio ];
|
|
|
|
# Currently no tests are implemented, so we avoid building the package twice
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Very resource-friendly and feature-rich replacement for i3status";
|
|
homepage = https://github.com/greshake/i3status-rust;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ backuitist globin ma27 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|