From e13f90580c0edc6c8b3731d959dcff0b1402e106 Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Fri, 15 Jan 2021 01:00:47 +0100 Subject: gnu: xfconf: Install bash completion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/xfce.scm (xfconf)[arguments]: Add install-shell-completions phase. Signed-off-by: Ludovic Courtès --- gnu/packages/xfce.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu/packages/xfce.scm') diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm index 2736f861a8..77c366b0a2 100644 --- a/gnu/packages/xfce.scm +++ b/gnu/packages/xfce.scm @@ -155,6 +155,13 @@ (define-public xfconf ;; For the missing '/etc/machine-id'. (setenv "DBUS_FATAL_WARNINGS" "0") (invoke "dbus-launch" "make" "check"))) + (add-after 'custom-check 'install-shell-completions + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (etc (string-append out "/etc"))) + (with-directory-excursion "completions" + (install-file "xfconf-query" + (string-append etc "/bash_completion.d")))))) (delete 'check)))) (native-inputs `(("pkg-config" ,pkg-config) -- cgit v1.2.3