Unverified Commit 9c797da5 authored by Hoang Nguyen's avatar Hoang Nguyen
Browse files

chafa: install zsh completion

parent 6630f789
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  installShellFiles,
  autoconf,
  automake,
  libtool,
@@ -39,6 +40,7 @@ stdenv.mkDerivation rec {
    libxml2
    docbook_xml_dtd_412
    docbook_xsl
    installShellFiles
  ];

  buildInputs = [
@@ -60,6 +62,10 @@ stdenv.mkDerivation rec {
    "--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml"
  ];

  postInstall = ''
    installShellCompletion --cmd chafa tools/completions/zsh-completion.zsh
  '';

  meta = with lib; {
    description = "Terminal graphics for the 21st century";
    homepage = "https://hpjansson.org/chafa/";