nixpkgs/pkgs/applications/window-managers/i3/status-rust.nix

31 lines
927 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }:
rustPlatform.buildRustPackage rec {
name = "i3status-rust-${version}";
version = "0.9.0.2019-03-21";
src = fetchFromGitHub {
owner = "greshake";
repo = "i3status-rust";
rev = "18300e6b9259053b80c37aef56c958fe5f50062b";
sha256 = "1g1ra0i7jlkdslmfycdyb2wh2s4gfawd0k2pjqx3ayml9kgq33yh";
};
cargoSha256 = "06izzv86nkn1izapldysyryz9zvjxvq23c742z284bnxjfq5my6i";
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 = [ maintainers.backuitist ];
platforms = platforms.linux;
};
}