3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/dwm/dwm-status.nix

33 lines
1,018 B
Nix
Raw Normal View History

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