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

33 lines
1018 B
Nix
Raw Normal View History

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 15:24:13 -07:00
rustPlatform.buildRustPackage rec {
name = "dwm-status-${version}";
2018-08-07 13:09:35 -07:00
version = "1.1.2";
2018-06-10 15:24:13 -07:00
src = fetchFromGitHub {
owner = "Gerschtli";
repo = "dwm-status";
rev = version;
2018-08-07 13:09:35 -07:00
sha256 = "1nyi0p9snx9hddb4hliihskj4gdp933xs0f8kydyiprckikwiyjk";
2018-06-10 15:24:13 -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-08-07 13:09:35 -07:00
cargoSha256 = "1ngdzzxnv4y6xprmkawf6s2696zgwiwgb6ykj5adb4knlx5c634d";
2018-06-10 15:24:13 -07:00
2018-06-26 12:29:18 -07:00
postInstall = lib.optionalString enableAlsaUtils ''
wrapProgram $out/bin/dwm-status \
2018-06-15 13:40:11 -07:00
--prefix "PATH" : "${alsaUtils}/bin"
'';
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;
};
}