summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-12 19:08:41 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-26 19:55:47 +0200
commit6b8f85ca8577aa9afe010a8bda6190b8d70cb91c (patch)
treef530c3e54f5bf32862dd0bc2fced6f7695bce455
parent9c4c8950d6511ad4d3af3b69bc3639db63ba7bda (diff)
gnu: Add go-ariga-io-atlas.
* gnu/packages/golang-xyz.scm (go-ariga-io-atlas): New variable. Change-Id: I67d2c5956a62a33164392136c9f25a148c6fb47c
-rw-r--r--gnu/packages/golang-xyz.scm57
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b16094737e..52f3a2f289 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")