summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-01-18 16:35:37 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-01-26 16:15:46 +0200
commit5bac1466292e0f8d845665e72834ec67eda88951 (patch)
tree5f1d343deed4c4b1a282140f7f7700772ab60ab2 /gnu
parent9cca298265b4c568892382d3e4740cdc7376c9f2 (diff)
downloadguix-5bac1466292e0f8d845665e72834ec67eda88951.tar.gz
gnu: Add go-gopkg-in-mgo-v2.
* gnu/packages/databases.scm (go-gopkg-in-mgo-v2): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/databases.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 2588cfa7be..aa1711c911 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3022,6 +3022,30 @@ etc., and an SQL engine for performing simple SQL queries.")
     (license (list license:lgpl2.0
                    license:gpl2+))))
 
+(define-public go-gopkg-in-mgo-v2
+  (package
+    (name "go-gopkg-in-mgo-v2")
+    (version "2.0.0-20190816093944-a6b53ec6cb22")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://gopkg.in/mgo.v2")
+               (commit (go-version->git-ref version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1lgvwxsbmdrf4938qkxl56wbwgbphk2qqnmpf73qdmlv4qsg14na"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:tests? #f      ; Tests try to use a running mongodb server.
+       #:import-path "gopkg.in/mgo.v2"))
+    (native-inputs
+     (list go-gopkg-in-check-v1))
+    (home-page "https://gopkg.in/mgo.v2")
+    (synopsis "MongoDB driver for Go")
+    (description "This package provides a MongoDB driver for Go.")
+    (license license:bsd-2)))
+
 (define-public python-lmdb
   (package
     (name "python-lmdb")