nixpkgs/pkgs/applications/window-managers/dwm/dwm-status.nix
2018-12-01 17:04:33 +01:00

39 lines
1.1 KiB
Nix

{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, makeWrapper, pkgconfig, xorg
, enableAlsaUtils ? true, alsaUtils, bash, coreutils }:
let
binPath = stdenv.lib.makeBinPath [
alsaUtils bash coreutils
];
in
rustPlatform.buildRustPackage rec {
name = "dwm-status-${version}";
version = "1.4.1";
src = fetchFromGitHub {
owner = "Gerschtli";
repo = "dwm-status";
rev = version;
sha256 = "054lwgqpx3kbrnlsqbnd8fxsawvw3nl702pf56c7dcm4sfws15nl";
};
nativeBuildInputs = [ makeWrapper pkgconfig ];
buildInputs = [ dbus gdk_pixbuf libnotify xorg.libX11 ];
cargoSha256 = "0wbbbk99hxxlrkm389iqni9aqvw2laarwk6hhwsr4ph3y278qhi8";
postInstall = lib.optionalString enableAlsaUtils ''
wrapProgram $out/bin/dwm-status \
--prefix "PATH" : "${binPath}"
'';
meta = with stdenv.lib; {
description = "Highly performant and configurable DWM status service";
homepage = https://github.com/Gerschtli/dwm-status;
license = with licenses; [ mit ];
maintainers = with maintainers; [ gerschtli ];
platforms = platforms.linux;
};
}