mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
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).
This commit is contained in:
parent
b7dd802f6c
commit
43ef7e2925
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user