gnu: sqls: Use go-1.21.

Merge all inputs into native-inputs since the output result of the
package is an executable that does not require sources from Golang
modules to be available after installation.

* gnu/packages/databases.scm (sqls):
[arguments]: <#:go>: Use go-1.21.
[inputs]: Remove go-github-com-go-sql-driver-mysql,
go-github-com-lib-pq, go-github-com-mattn-go-runewidth,
go-github-com-mattn-go-sqlite3, go-github-com-olekukonko-tablewriter,
go-github-com-pkg-errors, go-github-com-sourcegraph-jsonrpc2,
go-golang-org-x-crypto, go-golang-org-x-xerrors, and
go-gopkg-in-yaml-v2.
[native-inputs]: Add go-github-com-go-sql-driver-mysql,
go-github-com-lib-pq, go-github-com-mattn-go-runewidth,
go-github-com-mattn-go-sqlite3, go-github-com-olekukonko-tablewriter,
go-github-com-pkg-errors, go-github-com-sourcegraph-jsonrpc2,
go-golang-org-x-crypto, go-golang-org-x-xerrors, and
go-gopkg-in-yaml-v2.

Change-Id: I9312a483dfa954b5f0ad4cfac04b5153570bf571
This commit is contained in:
Sharlatan Hellseher 2024-05-04 23:10:08 +01:00
parent e582f27a53
commit c7bd735bc4
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5442,6 +5442,8 @@ (define-public sqlitebrowser
(define-public sqls
(package
(name "sqls")
;; TODO: The latest version requires a way more packages to be available
;; in Guix.
(version "0.2.18")
(source (origin
(method git-fetch)
@ -5455,20 +5457,22 @@ (define-public sqls
(build-system go-build-system)
(arguments
(list
#:go go-1.21
#:install-source? #f
#:import-path "github.com/lighttiger2505/sqls"))
(inputs (list go-github-com-go-sql-driver-mysql
go-github-com-lib-pq
go-github-com-mattn-go-runewidth
go-github-com-mattn-go-sqlite3
go-github-com-olekukonko-tablewriter
go-github-com-pkg-errors
go-github-com-sourcegraph-jsonrpc2
go-golang-org-x-crypto
go-golang-org-x-xerrors
go-gopkg-in-yaml-v2))
(native-inputs (list go-github-com-google-go-cmp-cmp
go-github-com-k0kubun-pp))
(native-inputs
(list go-github-com-google-go-cmp-cmp
go-github-com-go-sql-driver-mysql
go-github-com-k0kubun-pp
go-github-com-lib-pq
go-github-com-mattn-go-runewidth
go-github-com-mattn-go-sqlite3
go-github-com-olekukonko-tablewriter
go-github-com-pkg-errors
go-github-com-sourcegraph-jsonrpc2
go-golang-org-x-crypto
go-golang-org-x-xerrors
go-gopkg-in-yaml-v2))
(home-page "https://github.com/sqls-server/sqls")
(synopsis "SQL language server written in Go")
(description