gnu: btrfs-progs: Install bash completions.
authorMarius Bakke <mbakke@fastmail.com>
Thu, 14 Sep 2017 13:30:02 +0000 (15:30 +0200)
committerMarius Bakke <mbakke@fastmail.com>
Wed, 20 Sep 2017 15:15:37 +0000 (17:15 +0200)
* gnu/packages/linux.scm (btrfs-progs)[arguments]: Add
'install-bash-completion' phase.

gnu/packages/linux.scm

index 4761521..8a69f0d 100644 (file)
@@ -3187,6 +3187,12 @@ and copy/paste text in the console and in xterm.")
      '(#:phases (modify-phases %standard-phases
                  (add-after 'build 'build-static
                    (lambda _ (zero? (system* "make" "static"))))
+                 (add-after 'install 'install-bash-completion
+                   (lambda* (#:key outputs #:allow-other-keys)
+                     (install-file "btrfs-completion"
+                                   (string-append (assoc-ref outputs "out")
+                                                  "/etc/bash_completion.d"))
+                     #t))
                  (add-after 'install 'install-static
                    (let ((staticbin (string-append (assoc-ref %outputs "static")
                                                   "/bin")))