nixpkgs-suyu/pkgs/applications/window-managers/dwm/dwm-status.nix

33 lines
1,018 B
Nix
Raw Normal View History

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