From 6df7a8b34cf2aad6affd1838af18c4900be4dd18 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 6 Jul 2018 11:11:14 -0400 Subject: [PATCH] dunst: fix building without dunstify Fixes https://hydra.nixos.org/build/77046987/ --- pkgs/applications/misc/dunst/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix index 4791fe69364..12f1f78acb9 100644 --- a/pkgs/applications/misc/dunst/default.nix +++ b/pkgs/applications/misc/dunst/default.nix @@ -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" '';