Unverified Commit 436dbcf8 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

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

dunst: install Zsh completion files
parents b3e46897 12951822
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{ 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; };