2018-06-26 12:29:18 -07:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, makeWrapper, pkgconfig, xorg
|
|
|
|
, enableAlsaUtils ? true, alsaUtils }:
|
2018-06-10 16:57:59 -07:00
|
|
|
|
2018-06-10 15:24:13 -07:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "dwm-status-${version}";
|
2018-11-25 12:13:04 -08:00
|
|
|
version = "1.4.0";
|
2018-06-10 15:24:13 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gerschtli";
|
|
|
|
repo = "dwm-status";
|
|
|
|
rev = version;
|
2018-11-25 12:13:04 -08:00
|
|
|
sha256 = "1v9ksv8hdxhpm7vs71p9s1y3gnahczza0w4wyrk2fsc6x2kwlh6x";
|
2018-06-10 15:24:13 -07:00
|
|
|
};
|
|
|
|
|
2018-06-10 16:57:59 -07:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
2018-06-15 13:40:11 -07:00
|
|
|
buildInputs = [ dbus gdk_pixbuf libnotify xorg.libX11 ];
|
2018-06-10 15:24:13 -07:00
|
|
|
|
2018-11-08 07:52:41 -08:00
|
|
|
cargoSha256 = "0wbbbk99hxxlrkm389iqni9aqvw2laarwk6hhwsr4ph3y278qhi8";
|
2018-06-10 15:24:13 -07:00
|
|
|
|
2018-06-26 12:29:18 -07:00
|
|
|
postInstall = lib.optionalString enableAlsaUtils ''
|
2018-06-10 16:57:59 -07:00
|
|
|
wrapProgram $out/bin/dwm-status \
|
2018-06-15 13:40:11 -07:00
|
|
|
--prefix "PATH" : "${alsaUtils}/bin"
|
2018-06-10 16:57:59 -07:00
|
|
|
'';
|
|
|
|
|
2018-06-10 15:24:13 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-28 04:10:37 -07:00
|
|
|
description = "Highly performant and configurable DWM status service";
|
2018-06-10 15:24:13 -07:00
|
|
|
homepage = https://github.com/Gerschtli/dwm-status;
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|