diff options
| author | Patrick Norton <patrick.147.norton@gmail.com> | 2026-01-04 16:41:38 -0500 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-28 23:16:42 +0100 |
| commit | ef6adee3d70873a3b855935afb9d66a9f232b52f (patch) | |
| tree | f3fbd35a04070d616cdd0f5216596b43babb2ae3 /gnu | |
| parent | 19f50d226c4cfbfa2dfc45085c74cce60b5fc576 (diff) | |
gnu: Add go-github-com-ssgreg-nlreturn-v2.
* gnu/packages/golang-check.scm (go-github-com-ssgreg-nlreturn-v2)
(go-nlreturn): New variables.
Relates-to: guix/guix!5417
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-check.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d997ca6a8bf..9ebd5df28b3 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm | |||
| @@ -3428,6 +3428,34 @@ functions for writing tests in an @code{xUnit} style.") | |||
| 3428 | test coverage and has a web user interface that will refresh automatically.") | 3428 | test coverage and has a web user interface that will refresh automatically.") |
| 3429 | (license license:expat))) | 3429 | (license license:expat))) |
| 3430 | 3430 | ||
| 3431 | (define-public go-github-com-ssgreg-nlreturn-v2 | ||
| 3432 | (package | ||
| 3433 | (name "go-github-com-ssgreg-nlreturn-v2") | ||
| 3434 | (version "2.2.1") | ||
| 3435 | (source | ||
| 3436 | (origin | ||
| 3437 | (method git-fetch) | ||
| 3438 | (uri (git-reference | ||
| 3439 | (url "https://github.com/ssgreg/nlreturn") | ||
| 3440 | (commit (string-append "v" version)))) | ||
| 3441 | (file-name (git-file-name name version)) | ||
| 3442 | (sha256 | ||
| 3443 | (base32 "1fp505fxczcwzdnsij324q2jq9293qi53dr4i115sgc1r6zjgbh0")))) | ||
| 3444 | (build-system go-build-system) | ||
| 3445 | (arguments | ||
| 3446 | (list | ||
| 3447 | #:skip-build? #t | ||
| 3448 | #:import-path "github.com/ssgreg/nlreturn/v2")) | ||
| 3449 | (propagated-inputs | ||
| 3450 | (list go-golang-org-x-tools)) | ||
| 3451 | (home-page "https://github.com/ssgreg/nlreturn") | ||
| 3452 | (synopsis "Linter requiring new line before return statements") | ||
| 3453 | (description | ||
| 3454 | "This package implements a linter that requires a new line before return | ||
| 3455 | and branch statements except when the return is alone inside a statement | ||
| 3456 | group (such as an if statement) to increase code clarity.") | ||
| 3457 | (license license:expat))) | ||
| 3458 | |||
| 3431 | (define-public go-github-com-stbenjam-no-sprintf-host-port | 3459 | (define-public go-github-com-stbenjam-no-sprintf-host-port |
| 3432 | (package | 3460 | (package |
| 3433 | (name "go-github-com-stbenjam-no-sprintf-host-port") | 3461 | (name "go-github-com-stbenjam-no-sprintf-host-port") |
| @@ -5129,6 +5157,21 @@ tool.")))) | |||
| 5129 | (inputs '()) | 5157 | (inputs '()) |
| 5130 | (propagated-inputs '()))) | 5158 | (propagated-inputs '()))) |
| 5131 | 5159 | ||
| 5160 | (define-public go-nlreturn | ||
| 5161 | (package/inherit go-github-com-ssgreg-nlreturn-v2 | ||
| 5162 | (name "go-nlreturn") | ||
| 5163 | (arguments | ||
| 5164 | (substitute-keyword-arguments arguments | ||
| 5165 | ((#:import-path _) "github.com/ssgreg/nlreturn/v2/cmd/nlreturn") | ||
| 5166 | ((#:install-source? _ #t) #f) | ||
| 5167 | ((#:skip-build? _ #t) #f) | ||
| 5168 | ((#:tests? _ #t) #f) | ||
| 5169 | ((#:unpack-path _ "") "github.com/ssgreg/nlreturn/v2"))) | ||
| 5170 | (native-inputs | ||
| 5171 | (package-propagated-inputs go-github-com-ssgreg-nlreturn-v2)) | ||
| 5172 | (inputs '()) | ||
| 5173 | (propagated-inputs '()))) | ||
| 5174 | |||
| 5132 | (define-public go-nosprintfhostport | 5175 | (define-public go-nosprintfhostport |
| 5133 | (package/inherit go-github-com-stbenjam-no-sprintf-host-port | 5176 | (package/inherit go-github-com-stbenjam-no-sprintf-host-port |
| 5134 | (name "go-nosprintfhostport") | 5177 | (name "go-nosprintfhostport") |
