guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/12: gnu: xfconf: Install bash completion.


From: guix-commits
Subject: 06/12: gnu: xfconf: Install bash completion.
Date: Sat, 16 Jan 2021 17:42:31 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit e13f90580c0edc6c8b3731d959dcff0b1402e106
Author: Michael Rohleder <mike@rohleder.de>
AuthorDate: Fri Jan 15 01:00:47 2021 +0100

    gnu: xfconf: Install bash completion.
    
    * gnu/packages/xfce.scm (xfconf)[arguments]: Add install-shell-completions 
phase.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/xfce.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 2736f86..77c366b 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -155,6 +155,13 @@ Xfce Desktop Environment.")
              ;; 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]