summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2025-09-16 10:59:42 +0200
committerLudovic Courtès <ludo@gnu.org>2025-09-30 08:43:38 +0200
commitb26b50cfec07e8ae933940dcbdfbdce8d6721654 (patch)
tree18abfe0c2b34202547b7910bfe73e598cf23eca3 /gnu/packages
parentce7d39d448b3c6f3e14f9bcb583bb4da9ac7efe4 (diff)
gnu: Add elixir-db-connection.
* gnu/packages/databases.scm: New file. (elixir-db-connection): New variable. * gnu/local.mk: Add it. Change-Id: I5cce923ba48e517bb4651c9596a8c52d622f59d4 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/elixir-databases.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/elixir-databases.scm b/gnu/packages/elixir-databases.scm
new file mode 100644
index 00000000000..0c7159218c2
--- /dev/null
+++ b/gnu/packages/elixir-databases.scm
@@ -0,0 +1,55 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2025 Giacomo Leidi <goodoldpaul@autistici.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages elixir-databases)
20 #:use-module (gnu packages erlang-xyz)
21 #:use-module (gnu packages elixir-xyz)
22 #:use-module (guix build-system mix)
23 #:use-module (guix download)
24 #:use-module (guix git-download)
25 #:use-module (guix gexp)
26 #:use-module ((guix licenses)
27 #:prefix license:)
28 #:use-module (guix packages))
29
30(define-public elixir-db-connection
31 (package
32 (name "elixir-db-connection")
33 (version "2.8.1")
34 (source
35 (origin
36 (method url-fetch)
37 (uri (hexpm-uri "db_connection" version))
38 (sha256
39 (base32 "1zd8kp85wh7bbzr5x4kc75l53r5q9xwrhfz04vrpd793kd43s6m6"))))
40 (build-system mix-build-system)
41 (arguments
42 (list
43 ;; Tests require a db process
44 #:tests? #f
45 #:build-per-environment #f))
46 (propagated-inputs (list erlang-telemetry))
47 (synopsis
48 "Database connection behaviour")
49 (description
50 "This package provides @code{elixir-db-connection}, a library implementing
51database connection behaviour and database connection pool. It is designed for
52handling transaction, prepare/execute, cursors and client process
53describe/encode/decode.")
54 (home-page "https://hexdocs.pm/db_connection/")
55 (license license:asl2.0)))