[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/24] gnu: databases: Add lmdb.
From: |
David Craven |
Subject: |
[PATCH 04/24] gnu: databases: Add lmdb. |
Date: |
Tue, 16 Aug 2016 20:39:18 +0200 |
* gnu/packages/databases.scm (lmdb): New variable.
---
gnu/packages/databases.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index d3a44f7..0a6b267 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -57,6 +57,7 @@
#:use-module ((guix licenses)
#:select (gpl2 gpl3 gpl3+ lgpl2.1+ lgpl3+ x11-style
non-copyleft
bsd-2 bsd-3 public-domain))
+ #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
@@ -1064,3 +1065,31 @@ trees (LSM), for sustained throughput under random
insert workloads.")
(description
"The DB::File module provides Perl bindings to the Berkeley DB version
1.x.")
(license (package-license perl))))
+
+(define-public lmdb
+ (package
+ (name "lmdb")
+ (version "0.9.18")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/LMDB/lmdb/archive/"
+ "LMDB_" version ".tar.gz"))
+ (sha256
+ (base32
+ "12crvzxky8in99ibh22k4ppmkgqs28yy3v7yy944za7fsrqv8dfx"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:test-target "test"
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (chdir (string-append
+ (getenv "PWD") "/lmdb-LMDB_" ,version "/libraries/liblmdb"))
+ (substitute* "Makefile"
+ (("/usr/local") (assoc-ref outputs "out")))
+ #t)))))
+ (home-page "https://symas.com/products/lightning-memory-mapped-database")
+ (synopsis "Lightning memory-mapped database library")
+ (description "Lightning memory-mapped database library.")
+ (license license:openldap2.8)))
--
2.9.0
- [PATCH 01/24] gnu: qt: Add qtquickcontrols., David Craven, 2016/08/16
- [PATCH 05/24] gnu: xml: Add yaml-cpp., David Craven, 2016/08/16
- [PATCH 04/24] gnu: databases: Add lmdb.,
David Craven <=
- [PATCH 06/24] gnu: xml: Add jsoncpp., David Craven, 2016/08/16
- [PATCH 02/24] gnu: qt: Add qtquickcontrols2., David Craven, 2016/08/16
- [PATCH 07/24] gnu: compression: Add snappy., David Craven, 2016/08/16
- [PATCH 03/24] gnu: qt: Add qtgraphicaleffects., David Craven, 2016/08/16
- [PATCH 08/24] gnu: xorg: Add lndir., David Craven, 2016/08/16