gnu: go-github-com-savsgio-gotils: Simplify.

* gnu/packages/golang.scm (go-github-com-savsgio-gotils): Simplify and
improve style.
[arguments]: Use default 'build, 'check and 'install.
<skip-build?>: No go files in project's root.
[propagated-inputs]: Add go-github-com-google-uuid and
go-github-com-valyala-bytebufferpool.
[native-inputs]: Remove go-github-com-google-uuid and
go-github-com-valyala-bytebufferpool.

Change-Id: I976c1ac2c3c81fb3510d522810100c4e277c50ca
This commit is contained in:
Sharlatan Hellseher 2024-12-29 21:56:48 +00:00
parent 928227fa73
commit 622e44b306
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1435,61 +1435,13 @@ (define-public go-github-com-savsgio-gotils
(sha256
(base32 "0qr7i62h53frcig26vj027r2hn9zxsjzd7113wvbxy7qpprjjbjb"))))
(build-system go-build-system)
(native-inputs
(arguments
(list
#:skip-build? #t
#:import-path "github.com/savsgio/gotils"))
(propagated-inputs
(list go-github-com-google-uuid
go-github-com-valyala-bytebufferpool))
(arguments
'(#:import-path "github.com/savsgio/gotils"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'build)
`(,@arguments #:import-path ,directory)))
(list
"github.com/savsgio/gotils/bytes"
"github.com/savsgio/gotils/encoding/base64"
"github.com/savsgio/gotils/math"
"github.com/savsgio/gotils/nocopy"
"github.com/savsgio/gotils/strconv"
"github.com/savsgio/gotils/strings"
"github.com/savsgio/gotils/sync"
"github.com/savsgio/gotils/time"
"github.com/savsgio/gotils/uuid"))))
(replace 'check
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'check)
`(,@arguments #:import-path ,directory)))
(list
"github.com/savsgio/gotils/bytes"
"github.com/savsgio/gotils/encoding/base64"
"github.com/savsgio/gotils/math"
"github.com/savsgio/gotils/nocopy"
"github.com/savsgio/gotils/strconv"
"github.com/savsgio/gotils/strings"
"github.com/savsgio/gotils/sync"
"github.com/savsgio/gotils/time"
"github.com/savsgio/gotils/uuid"))))
(replace 'install
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'install)
`(,@arguments #:import-path ,directory)))
(list
"github.com/savsgio/gotils/bytes"
"github.com/savsgio/gotils/encoding/base64"
"github.com/savsgio/gotils/math"
"github.com/savsgio/gotils/nocopy"
"github.com/savsgio/gotils/strconv"
"github.com/savsgio/gotils/strings"
"github.com/savsgio/gotils/sync"
"github.com/savsgio/gotils/time"
"github.com/savsgio/gotils/uuid")))))))
(home-page "https://github.com/savsgio/gotils")
(synopsis "Golang utilities")
(description