Merge pull request #221272 from vincentbernat/feature/dunst-zshcomp

dunst: install Zsh completion files
This commit is contained in:
Jörg Thalheim 2023-03-16 07:12:45 +00:00 committed by GitHub
commit 436dbcf88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper
, pkg-config, which, perl, libXrandr
, pkg-config, which, perl, jq, libXrandr
, cairo, dbus, systemd, gdk-pixbuf, glib, libX11, libXScrnSaver
, wayland, wayland-protocols
, libXinerama, libnotify, pango, xorgproto, librsvg
@ -38,6 +38,11 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/dunst \
--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; };