diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2015-06-03 23:42:37 -0700 |
---|---|---|
committer | Anders Papitto <anderspapitto@gmail.com> | 2015-06-03 23:53:50 -0700 |
commit | 43ef7e29252faecd2e1d46c8bf7ac84b8910048e (patch) | |
tree | a43e83c6d6565e8c3c29e3c5d0c260a370332365 | |
parent | b7dd802f6cdc90f3501fff7ca17764ca70d9742f (diff) | |
download | nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar.gz nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar.bz2 nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar.lz nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar.xz nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.tar.zst nixlib-43ef7e29252faecd2e1d46c8bf7ac84b8910048e.zip |
make a wrapper so that dunst can find dbus-launch
Prior to this change, the following would fail nix-shell --pure -p dunst --command dunst while this would succeed nix-shell --pure -p dunst -p dbus_daemon --command dunst because dunst tries to execve 'dbus-launch'. The same issue hit if dunst was used inside a (user) systemd service (which is what I actually care about).
-rw-r--r-- | pkgs/applications/misc/dunst/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix index 33371c93b866..c398c3c43d00 100644 --- a/pkgs/applications/misc/dunst/default.nix +++ b/pkgs/applications/misc/dunst/default.nix @@ -1,6 +1,7 @@ -{ stdenv, fetchurl, coreutils , unzip, which, pkgconfig , dbus -, freetype, xdg_utils , libXext, glib, pango , cairo, libX11, libnotify -, libxdg_basedir , libXScrnSaver, xproto, libXinerama , perl, gdk_pixbuf +{ stdenv, fetchurl, coreutils, unzip, which, pkgconfig, dbus +, freetype, xdg_utils, libXext, glib, pango, cairo, libX11, libnotify +, libxdg_basedir, libXScrnSaver, xproto, libXinerama, perl, gdk_pixbuf +, dbus_daemon, makeWrapper }: stdenv.mkDerivation rec { @@ -15,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ coreutils unzip which pkgconfig dbus freetype libnotify gdk_pixbuf xdg_utils libXext glib pango cairo libX11 libxdg_basedir - libXScrnSaver xproto libXinerama perl]; + libXScrnSaver xproto libXinerama perl dbus_daemon makeWrapper ]; buildPhase = '' export VERSION=${version}; @@ -23,6 +24,11 @@ stdenv.mkDerivation rec { make dunst; ''; + postFixup = '' + wrapProgram "$out/bin/dunst" \ + --prefix PATH : '${dbus_daemon}/bin' + ''; + meta = { description = "lightweight and customizable notification daemon"; homepage = http://www.knopwob.org/dunst/; |