gnu: Add go-ariga-io-atlas.

* gnu/packages/golang-xyz.scm (go-ariga-io-atlas): New variable.

Change-Id: I67d2c5956a62a33164392136c9f25a148c6fb47c
This commit is contained in:
Sharlatan Hellseher 2025-06-12 19:08:41 +01:00
parent e3d174ca4b
commit 42cada0f70
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -173,6 +173,63 @@
interacting with Acme windows of the Plan 9 text editor.") interacting with Acme windows of the Plan 9 text editor.")
(license license:expat))) (license license:expat)))
(define-public go-ariga-io-atlas
(package
(name "go-ariga-io-atlas")
(version "0.35.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ariga/atlas")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09lh0j5w85xm0rli4cqifn5qkwdb1vnmwfdf5kymsf2w4qz3f82i"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separately:
;;
;; - ariga.io/atlas/cmd/atlas
;; - ariga.io/atlas/internal/integration
(delete-file-recursively "cmd")
(delete-file-recursively "internal/integration")))))
(build-system go-build-system)
(arguments
(list
#:skip-build? #t
#:import-path "ariga.io/atlas"
#:test-flags
#~(list "-skip" (string-join
(list "TestValidate"
"TestDriver_LockAcquired")
"|"))
#:phases
#~(modify-phases %standard-phases
;; Received unexpected error: open
;; /homeless-shelter/.cache/lock.lock: no such file or directory
(add-before 'check 'set-home
(lambda _
(setenv "HOME" "/tmp"))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-bmatcuk-doublestar
go-github-com-data-dog-go-sqlmock
go-github-com-go-openapi-inflect
go-github-com-hashicorp-hcl-v2
go-github-com-zclconf-go-cty
go-github-com-zclconf-go-cty-yaml
go-golang-org-x-mod
go-gopkg-in-yaml-v3))
(home-page "https://ariga.io/atlas")
(synopsis "Database schema as code")
(description
"Atlas is a language-agnostic tool for managing and migrating database
schemas using @code{DevOps} principles.")
(license license:asl2.0)))
(define-public go-atomicgo-dev-cursor (define-public go-atomicgo-dev-cursor
(package (package
(name "go-atomicgo-dev-cursor") (name "go-atomicgo-dev-cursor")