summary refs log tree commit diff
path: root/pkgs/development/libraries/sqlcipher
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2014-07-02 11:18:27 +0200
committerLluís Batlle i Rossell <viric@viric.name>2014-07-02 11:19:26 +0200
commitf8cd1b3062da3986ddb8803195582c28776b0def (patch)
tree9e916b8a56ecb150fb6ef4943197c7f73eca99c6 /pkgs/development/libraries/sqlcipher
parentf666bf4ddf3f5f50cad6e17907dae53d545444d0 (diff)
downloadnixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar.gz
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar.bz2
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar.lz
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar.xz
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.tar.zst
nixpkgs-f8cd1b3062da3986ddb8803195582c28776b0def.zip
Adding sqlcipher.
Diffstat (limited to 'pkgs/development/libraries/sqlcipher')
-rw-r--r--pkgs/development/libraries/sqlcipher/default.nix25
1 files changed, 25 insertions, 0 deletions
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;
+  };
+}