From f8cd1b3062da3986ddb8803195582c28776b0def Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Wed, 2 Jul 2014 11:18:27 +0200 Subject: Adding sqlcipher. --- pkgs/development/libraries/sqlcipher/default.nix | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/sqlcipher/default.nix (limited to 'pkgs/development/libraries') diff --git a/pkgs/development/libraries/sqlcipher/default.nix b/pkgs/development/libraries/sqlcipher/default.nix new file mode 100644 index 00000000000..04e11099116 --- /dev/null +++ b/pkgs/development/libraries/sqlcipher/default.nix @@ -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; + }; +} -- cgit 1.4.1