From patchwork Wed Sep 14 19:30:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Patterson X-Patchwork-Id: 15641 Received: (qmail 29253 invoked by uid 89); 14 Sep 2016 19:30:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:mailser, Hx-spam-relays-external:sk:mailser, H*RU:sk:mailser, 34, 13 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Sep 2016 19:30:48 +0000 Received: from localhost ([::1]:58363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkFtO-0006rd-MI for patchwork@sourceware.org; Wed, 14 Sep 2016 15:30:46 -0400 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 Received: from jalisou.gateway.2wire.net (bas1-jockvale05-3096536993.dsl.bell.ca [184.145.103.161]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id u8EJUHR1030963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 14 Sep 2016 15:30:24 -0400 From: Andy Patterson To: guix-devel@gnu.org Subject: [PATCH 1/2] gnu: Add sqlcipher. Date: Wed, 14 Sep 2016 15:30:13 -0400 Message-Id: <20160914193014.24224-2-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160914193014.24224-1-ajpatter@uwaterloo.ca> References: <20160914193014.24224-1-ajpatter@uwaterloo.ca> MIME-Version: 1.0 X-UUID: 39449e39-62d9-4508-b00d-36b03d5b0f4f X-MIME-Autoconverted: from 8bit to quoted-printable by minos.uwaterloo.ca id u8EJUHR1030963 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 129.97.128.141 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * 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 © 2016 ng0 ;;; Copyright © 2016 Roel Janssen ;;; Copyright © 2016 David Craven +;;; Copyright © 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=yes" + "CFLAGS=-DSQLITE_HAS_CODEC" + "LDFLAGS=-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 transparent +256-bit AES encryption of database files. Pages are encrypted before being +written to disk and are decrypted when read back. It’s well suited for +protecting embedded application databases and for mobile development.") + (license license:bsd-3)))