From 8f8646c3115602db173f2060a5fda6fe8422f456 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 27 Dec 2024 21:47:37 +0000 Subject: [PATCH] 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] : Use default 'build. : 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")