Merge pull request #42579 from dasJ/dunstify

dunst: Also install dunstify
This commit is contained in:
Matthew Bauer 2018-07-05 22:14:55 -04:00 committed by GitHub
commit ce2f8bfda8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, makeWrapper
, pkgconfig, which, perl, libXrandr
, cairo, dbus, systemd, gdk_pixbuf, glib, libX11, libXScrnSaver
, libXinerama, libnotify, libxdg_basedir, pango, xproto, librsvg
, libXinerama, libnotify, libxdg_basedir, pango, xproto, librsvg, dunstify ? false
}:
stdenv.mkDerivation rec {
@ -31,7 +31,11 @@ stdenv.mkDerivation rec {
"SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user"
];
buildFlags = if dunstify then [ "dunstify" ] else [];
postInstall = ''
${if dunstify then "install -Dm755 dunstify $out/bin" else ""}
install -Dm755 dunstify $out/bin
wrapProgram $out/bin/dunst \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
'';