1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 11:30:44 +02:00

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
This commit is contained in:
Sharlatan Hellseher 2024-12-27 21:47:37 +00:00
parent 82f5ca3ecb
commit 8f8646c311
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

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