guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit ab0a2d09201eb71de2e6101027c1d119ffc91774
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jun 12 19:08:41 2025 +0100
gnu: Add go-ariga-io-atlas.
* gnu/packages/golang-xyz.scm (go-ariga-io-atlas): New variable.
Change-Id: I67d2c5956a62a33164392136c9f25a148c6fb47c
---
gnu/packages/golang-xyz.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9ce0f6163d..ca0a13567e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -173,6 +173,63 @@
interacting with Acme windows of the Plan 9 text editor.")
(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
(package
(name "go-atomicgo-dev-cursor")