From b26b50cfec07e8ae933940dcbdfbdce8d6721654 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Tue, 16 Sep 2025 10:59:42 +0200 Subject: [PATCH] gnu: Add elixir-db-connection. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- gnu/local.mk | 1 + gnu/packages/elixir-databases.scm | 55 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 gnu/packages/elixir-databases.scm diff --git a/gnu/local.mk b/gnu/local.mk index 1641aec6a9b..2a29be7a9ec 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -261,6 +261,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/electronics.scm \ %D%/packages/elf.scm \ %D%/packages/elixir.scm \ + %D%/packages/elixir-databases.scm \ %D%/packages/elixir-markup.scm \ %D%/packages/elixir-xyz.scm \ %D%/packages/elm.scm \ 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 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2025 Giacomo Leidi +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages elixir-databases) + #:use-module (gnu packages erlang-xyz) + #:use-module (gnu packages elixir-xyz) + #:use-module (guix build-system mix) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (guix packages)) + +(define-public elixir-db-connection + (package + (name "elixir-db-connection") + (version "2.8.1") + (source + (origin + (method url-fetch) + (uri (hexpm-uri "db_connection" version)) + (sha256 + (base32 "1zd8kp85wh7bbzr5x4kc75l53r5q9xwrhfz04vrpd793kd43s6m6")))) + (build-system mix-build-system) + (arguments + (list + ;; Tests require a db process + #:tests? #f + #:build-per-environment #f)) + (propagated-inputs (list erlang-telemetry)) + (synopsis + "Database connection behaviour") + (description + "This package provides @code{elixir-db-connection}, a library implementing +database connection behaviour and database connection pool. It is designed for +handling transaction, prepare/execute, cursors and client process +describe/encode/decode.") + (home-page "https://hexdocs.pm/db_connection/") + (license license:asl2.0)))