summaryrefslogtreecommitdiff
path: root/gnu/packages/databases.scm
diff options
context:
space:
mode:
authorGreg Hogan <code@greghogan.com>2024-01-30 17:08:49 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-02-14 11:29:21 +0000
commit3fa4a8baf3fb735a09ed915abd4f61600e2d77e2 (patch)
tree528913e2210a7262a3f87cbd4fd85ae68fa19e48 /gnu/packages/databases.scm
parent2ba2875dbda4b080fcad4e6d672bb4104d59dd0c (diff)
gnu: Add duckdb.
* gnu/packages/databases.scm (duckdb): New variable. Change-Id: Ic689dbd4bb91a2c806f846464e2af95be50cd069 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r--gnu/packages/databases.scm35
1 files changed, 34 insertions, 1 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4a2b1b2507..5169795404 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -46,7 +46,7 @@
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
-;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2021, 2024 Greg Hogan <code@greghogan.com>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
@@ -190,6 +190,39 @@
#:use-module (srfi srfi-26)
#:use-module (ice-9 match))
+(define-public duckdb
+ (package
+ (name "duckdb")
+ (version "0.9.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/duckdb/duckdb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0dbsxyiz7c8sxflbfj87qv0b2s69zk802vsk5h00ra8w8fcbqlj0"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; There is no git checkout from which to read the version tag.
+ (substitute* "CMakeLists.txt"
+ (("set\\(DUCKDB_VERSION \"[^\"]*\"")
+ (string-append "set(DUCKDB_VERSION \"v" #$version "-dev0\"")))))))
+ (build-system cmake-build-system)
+ (home-page "https://duckdb.org")
+ (synopsis "In-process SQL OLAP database management system")
+ (description "CLI and C/C++ source libraries for DuckDB, a relational
+(table-oriented) @acronym{DBMS, Database Management System} that supports
+@acronym{SQL, Structured Query Language}, contains a columnar-vectorized query
+execution engine, and provides transactional @acronym{ACID, Atomicity
+Consistency Isolation and Durability} guarantees via bulk-optimized
+@acronym{MVCC, Multi-Version Concurrency Control}. Data can be stored in
+persistent, single-file databases with support for secondary indexes.")
+ (license license:expat)))
+
(define-public ephemeralpg
(package
(name "ephemeralpg")