From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Patterson Subject: [PATCH 1/2] gnu: Add sqlcipher. Date: Wed, 14 Sep 2016 15:30:13 -0400 Message-ID: <20160914193014.24224-2-ajpatter@uwaterloo.ca> References: <20160914193014.24224-1-ajpatter@uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkFtI-0006qv-7v for guix-devel@gnu.org; Wed, 14 Sep 2016 15:30:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkFtG-0003LE-To for guix-devel@gnu.org; Wed, 14 Sep 2016 15:30:40 -0400 Received: from mailservices.uwaterloo.ca ([129.97.128.141]:60591 helo=minos.uwaterloo.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkFtG-0003IV-II for guix-devel@gnu.org; Wed, 14 Sep 2016 15:30:38 -0400 In-Reply-To: <20160914193014.24224-1-ajpatter@uwaterloo.ca> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/database.scm (sqlcipher): New variable. --- gnu/packages/databases.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index fc31653..d424848 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2016 ng0 ;;; Copyright =C2=A9 2016 Roel Janssen ;;; Copyright =C2=A9 2016 David Craven +;;; Copyright =C2=A9 2016 Andy Patterson ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,11 +34,13 @@ #:use-module (gnu packages avahi) #:use-module (gnu packages bash) #:use-module (gnu packages boost) + #:use-module (gnu packages crypto) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages perl) #:use-module (gnu packages language) #:use-module (gnu packages linux) + #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages compression) #:use-module (gnu packages ncurses) @@ -1094,3 +1097,37 @@ trees (LSM), for sustained throughput under random= insert workloads.") (synopsis "Lightning memory-mapped database library") (description "Lightning memory-mapped database library.") (license license:openldap2.8))) + +(define-public sqlcipher + (package + (name "sqlcipher") + (version "3.4.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/sqlcipher/" name + "/archive/v" version ".tar.gz")) + (sha256 + (base32 "1l23lbp9pmf20xkshrs45gbg0igixr6dwdbvgfzh5plnyzn05dwr")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (inputs + `(("libcrypto" ,openssl))) + (native-inputs + `(("tcl" ,tcl))) + (arguments + '(#:configure-flags + '("--enable-tempstore=3Dyes" + "CFLAGS=3D-DSQLITE_HAS_CODEC" + "LDFLAGS=3D-lcrypto" + "--disable-tcl") + ;; tests are un-maintained in this fork + #:tests? #f)) + (home-page "https://www.zetetic.net/sqlcipher/") + (synopsis + "Library providing transparent encryption of SQLite database files"= ) + (description "SQLCipher is an SQLite extension that provides transpa= rent +256-bit AES encryption of database files. Pages are encrypted before be= ing +written to disk and are decrypted when read back. It=E2=80=99s well sui= ted for +protecting embedded application databases and for mobile development.") + (license license:bsd-3))) --=20 2.10.0