guix-commits
[Top][All Lists]
Advanced

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

38/63: gnu: go-github-com-client9-misspell: Fix build.


From: guix-commits
Subject: 38/63: gnu: go-github-com-client9-misspell: Fix build.
Date: Sat, 28 Dec 2024 11:13:42 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit 2403e6f96c2fa70bd0efb7d809a3e1762369aa2d
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Dec 27 21:47:37 2024 +0000

    gnu: go-github-com-client9-misspell: Fix build.
    
    Simplify, final command inherits from the library, remove redundant
    modifications.
    
    * gnu/packages/golang.scm (go-github-com-client9-misspell)
    [arguments] <phases>: Use default 'build.
    <test-subdirs>: Do not run tests in "cmd" which are failing.
    (misspell): Inherit.
    
    Change-Id: Ia9cbe287918dce646ece2ba9e50da110659c2a8f
---
 gnu/packages/golang.scm | 31 +++++++++++--------------------
 1 file changed, 11 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e44c1398b7..9e5dcf26c7 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3176,9 +3176,9 @@ Looks for an identical word on a list of words, if none 
is found, look for a
 similar word.")
       (license license:expat))))
 
-(define-public misspell
+(define-public go-github-com-client9-misspell
   (package
-    (name "misspell")
+    (name "go-github-com-client9-misspell")
     (version "0.3.4")
     (source (origin
               (method git-fetch)
@@ -3191,14 +3191,9 @@ similar word.")
                 "1vwf33wsc4la25zk9nylpbp9px3svlmldkm0bha4hp56jws4q9cs"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/client9/misspell"
-       #:phases (modify-phases %standard-phases
-                  (replace 'build
-                    (lambda arguments
-                      (apply (assoc-ref %standard-phases
-                                        'build)
-                             `(,@arguments #:import-path
-                               
"github.com/client9/misspell/cmd/misspell")))))))
+     (list
+      #:import-path "github.com/client9/misspell"
+      #:test-subdirs #~(list "ignore" ".")))
     (propagated-inputs (list go-github-com-gobwas-glob))
     (home-page "https://github.com/client9/misspell";)
     (synopsis "Correct commonly misspelled English words in source files")
@@ -3230,19 +3225,15 @@ locale can be selected.")
 alternative to @@code{exec.LookPath()}.")
     (license license:bsd-2)))
 
-(define-public go-github-com-client9-misspell
+(define-public misspell
   (package
-    (inherit misspell)
-    (name "go-github-com-client9-misspell")
+    (inherit go-github-com-client9-misspell)
+    (name "misspell")
     (arguments
-     `(#:import-path "github.com/client9/misspell"
+     `(#:import-path "github.com/client9/misspell/cmd/misspell"
+       #:unpack-path "github.com/client9/misspell"
        #:tests? #f
-       #:install-source? #t
-       #:phases (modify-phases %standard-phases
-                  (delete 'build))))
-    (propagated-inputs (package-inputs misspell))
-    (native-inputs '())
-    (inputs '())))
+       #:install-source? #t))))
 
 (define-public go-github-com-stevedonovan-luar
   (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")



reply via email to

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