diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix index 1a809307cc12b..4791fe693644a 100644 --- a/pkgs/applications/misc/dunst/default.nix +++ b/pkgs/applications/misc/dunst/default.nix @@ -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" '';