dunst: fix building without dunstify

Fixes https://hydra.nixos.org/build/77046987/
This commit is contained in:
Matthew Bauer 2018-07-06 11:11:14 -04:00
parent 1804301446
commit 6df7a8b34c

View file

@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
buildFlags = if dunstify then [ "dunstify" ] else [];
postInstall = ''
${if dunstify then "install -Dm755 dunstify $out/bin" else ""}
postInstall = stdenv.lib.optionalString dunstify ''
install -Dm755 dunstify $out/bin
'' + ''
wrapProgram $out/bin/dunst \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
'';