GNU bug report logs -
#68552
[PATCH] gnu: Add duckdb.
Previous Next
Reported by: Greg Hogan <code <at> greghogan.com>
Date: Wed, 17 Jan 2024 21:51:02 UTC
Severity: normal
Tags: patch
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
There exists a package python-duckdb, and this patch adds a package for
the CLI and C++ libraries.
* gnu/packages/cpp.scm (duckdb): New variable.
---
gnu/packages/cpp.scm | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index ecd3e4afac..420d9e8708 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -14,7 +14,7 @@
;;; Copyright © 2020, 2022 Marius Bakke <marius <at> gnu.org>
;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
;;; Copyright © 2020 Alexandros Theodotou <alex <at> zrythm.org>
-;;; Copyright © 2020-2022 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2020-2022, 2024 Greg Hogan <code <at> greghogan.com>
;;; Copyright © 2020 Brett Gilio <brettg <at> gnu.org>
;;; Copyright © 2020 Milkey Mouse <milkeymouse <at> meme.institute>
;;; Copyright © 2021 Raghav Gururajan <rg <at> raghavgururajan.name>
@@ -3064,3 +3064,30 @@ (define-public tl-optional
the std::optional for C++11/14/17, with support for monadic operations added in
C++23.")
(license license:cc0)))
+
+(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)
+ (synopsis "DuckDB embedded database")
+ (description "DuckDB is an in-process SQL OLAP database management system.")
+ (home-page "https://duckdb.org")
+ (license license:expat)))
base-commit: 692272661548eb2a46aaa818175b1a39b3fc9ffa
--
2.40.1
This bug report was last modified 1 year and 100 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.