Merge pull request #221272 from vincentbernat/feature/dunst-zshcomp
dunst: install Zsh completion files
This commit is contained in:
commit
436dbcf88a
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
||||||
, pkg-config, which, perl, libXrandr
|
, pkg-config, which, perl, jq, libXrandr
|
||||||
, cairo, dbus, systemd, gdk-pixbuf, glib, libX11, libXScrnSaver
|
, cairo, dbus, systemd, gdk-pixbuf, glib, libX11, libXScrnSaver
|
||||||
, wayland, wayland-protocols
|
, wayland, wayland-protocols
|
||||||
, libXinerama, libnotify, pango, xorgproto, librsvg
|
, libXinerama, libnotify, pango, xorgproto, librsvg
|
||||||
@ -38,6 +38,11 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/dunst \
|
wrapProgram $out/bin/dunst \
|
||||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
||||||
|
|
||||||
|
install -D contrib/_dunst.zshcomp $out/share/zsh/site-functions/_dunst
|
||||||
|
install -D contrib/_dunstctl.zshcomp $out/share/zsh/site-functions/_dunstctl
|
||||||
|
substituteInPlace $out/share/zsh/site-functions/_dunstctl \
|
||||||
|
--replace "jq -M" "${jq}/bin/jq -M"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion { package = dunst; };
|
passthru.tests.version = testers.testVersion { package = dunst; };
|
||||||
|
Loading…
Reference in New Issue
Block a user