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

33 lines
1,018 B
Nix
Raw Normal View History

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