guix-commits
[Top][All Lists]
Advanced

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

26/32: gnu: ghq: Fix build.


From: guix-commits
Subject: 26/32: gnu: ghq: Fix build.
Date: Mon, 19 Feb 2024 18:41:14 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit bd511903dec501dc503a2bafa28c60386c9d8118
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Feb 17 00:54:54 2024 +0000

    gnu: ghq: Fix build.
    
    Fix build as seen in <https://ci.guix.gnu.org/build/3490264/details>.
    
    * gnu/packages/version-control.scm (ghq): Use G-expressions.
    [arguments] <#:go>: Use go-1.21.
    <#:phases>: Remove trailing #t from lambda.
    
    Change-Id: Ifb1e133a2570dcd04212ef43b46c8b41c3507c88
---
 gnu/packages/version-control.scm | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 242c2bf093..3c43effbd1 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3720,23 +3720,24 @@ If several repos are related, it helps to see their 
status together.")
                 "155sfmhmh4ia3iinm1s8fk7fxyn5dxdryad9xkbg7mr3i3ikqjwh"))))
     (build-system go-build-system)
     (arguments
-     '(#:install-source? #f
-       #:import-path "github.com/x-motemen/ghq"
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'install 'install-completions
-           (lambda* (#:key outputs import-path #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (bash-completion (string-append out 
"/etc/bash_completion.d"))
-                    (zsh-completion (string-append out 
"/share/zsh/site-functions")))
-               (with-directory-excursion (string-append "src/" import-path)
-                 (mkdir-p bash-completion)
-                 (copy-file "misc/bash/_ghq"
-                            (string-append bash-completion "/ghq"))
-                 (mkdir-p zsh-completion)
-                 (copy-file "misc/zsh/_ghq"
-                            (string-append zsh-completion "/_ghq"))))
-             #t)))))
+     (list
+      #:install-source? #f
+      #:go go-1.21
+      #:import-path "github.com/x-motemen/ghq"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-completions
+            (lambda* (#:key outputs import-path #:allow-other-keys)
+              (let* ((out #$output)
+                     (bash-completion (string-append out 
"/etc/bash_completion.d"))
+                     (zsh-completion (string-append out 
"/share/zsh/site-functions")))
+                (with-directory-excursion (string-append "src/" import-path)
+                  (mkdir-p bash-completion)
+                  (copy-file "misc/bash/_ghq"
+                             (string-append bash-completion "/ghq"))
+                  (mkdir-p zsh-completion)
+                  (copy-file "misc/zsh/_ghq"
+                             (string-append zsh-completion "/_ghq")))))))))
     (native-inputs
      (list git-minimal))
     (inputs



reply via email to

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