summary refs log tree commit diff
path: root/pkgs/applications/misc/dunst/default.nix
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2018-05-17 00:13:19 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-05-17 00:13:19 +0200
commite3b3eac630b686dac89895eab6a4d9245362d5f4 (patch)
tree84bd821ee59ed43a2a68ce7a1c73fac4f7c3d041 /pkgs/applications/misc/dunst/default.nix
parent5523bd07d4e935e2a7210ae25434b2806a2d5f13 (diff)
downloadnixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar.gz
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar.bz2
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar.lz
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar.xz
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.tar.zst
nixpkgs-e3b3eac630b686dac89895eab6a4d9245362d5f4.zip
dunst: add wrapper to find librsvg (#40050)
Diffstat (limited to 'pkgs/applications/misc/dunst/default.nix')
-rw-r--r--pkgs/applications/misc/dunst/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix
index 75640b2c54e..1a809307cc1 100644
--- a/pkgs/applications/misc/dunst/default.nix
+++ b/pkgs/applications/misc/dunst/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub
+{ stdenv, fetchFromGitHub, makeWrapper
 , pkgconfig, which, perl, libXrandr
 , cairo, dbus, systemd, gdk_pixbuf, glib, libX11, libXScrnSaver
 , libXinerama, libnotify, libxdg_basedir, pango, xproto, librsvg
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
     sha256 = "1kqlshaflp306yrjjmc28pghi1y5p24vdx4bxf8i4n9khdawb514";
   };
 
-  nativeBuildInputs = [ perl pkgconfig which systemd ];
+  nativeBuildInputs = [ perl pkgconfig which systemd makeWrapper ];
 
   buildInputs = [
     cairo dbus gdk_pixbuf glib libX11 libXScrnSaver
@@ -31,6 +31,11 @@ stdenv.mkDerivation rec {
     "SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user"
   ];
 
+  postInstall = ''
+    wrapProgram $out/bin/dunst \
+      --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
+  '';
+
   meta = with stdenv.lib; {
     description = "Lightweight and customizable notification daemon";
     homepage = https://dunst-project.org/;