mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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:
parent
928227fa73
commit
622e44b306
1 changed files with 5 additions and 53 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue