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

39 lines
1.1 KiB
Nix
Raw Normal View History

2018-06-26 19:29:18 +00:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk_pixbuf, libnotify, makeWrapper, pkgconfig, xorg
2018-12-01 16:03:40 +00:00
, enableAlsaUtils ? true, alsaUtils, bash, coreutils }:
let
binPath = stdenv.lib.makeBinPath [
alsaUtils bash coreutils
];
in
2018-06-10 22:24:13 +00:00
rustPlatform.buildRustPackage rec {
name = "dwm-status-${version}";
2018-12-01 16:03:40 +00:00
version = "1.4.1";
2018-06-10 22:24:13 +00:00
src = fetchFromGitHub {
owner = "Gerschtli";
repo = "dwm-status";
rev = version;
2018-12-01 16:03:40 +00:00
sha256 = "054lwgqpx3kbrnlsqbnd8fxsawvw3nl702pf56c7dcm4sfws15nl";
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-11-08 15:52:41 +00:00
cargoSha256 = "0wbbbk99hxxlrkm389iqni9aqvw2laarwk6hhwsr4ph3y278qhi8";
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-12-01 16:03:40 +00:00
--prefix "PATH" : "${binPath}"
'';
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;
};
}