Adding sqlcipher.

This commit is contained in:
Lluís Batlle i Rossell 2014-07-02 11:18:27 +02:00
parent f666bf4ddf
commit f8cd1b3062
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl, openssl, tcl, readline ? null, ncurses ? null }:
assert readline != null -> ncurses != null;
stdenv.mkDerivation {
name = "sqlcipher-3.1.0";
src = fetchurl {
url = "https://github.com/sqlcipher/sqlcipher/archive/v3.1.0.tar.gz";
sha256 = "1h54hsl7g6ra955aaqid5wxm93fklx2pxz8abcdwf9md3bpfcn18";
};
buildInputs = [ readline ncurses openssl tcl ];
configureFlags = "--enable-threadsafe --disable-tcl";
CFLAGS = "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_HAS_CODEC";
LDFLAGS = if readline != null then "-lncurses" else "";
meta = {
homepage = http://sqlcipher.net/
description = "Full Database Encryption for SQLite";
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -6147,6 +6147,11 @@ let
inherit readline ncurses;
});
sqlcipher = lowPrio (callPackage ../development/libraries/sqlcipher {
readline = null;
ncurses = null;
});
stfl = callPackage ../development/libraries/stfl {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple