sqlcipher: 3.1.0 -> 3.4.0

This commit is contained in:
Nikolay Amiantov 2016-08-18 02:19:45 +03:00
parent a4bbb2d9a3
commit 3367c211c6
1 changed files with 15 additions and 11 deletions

View File

@ -1,25 +1,29 @@
{ stdenv, fetchurl, openssl, tcl, readline ? null, ncurses ? null }: { stdenv, lib, fetchFromGitHub, openssl, tcl, readline ? null, ncurses ? null }:
assert readline != null -> ncurses != null; assert readline != null -> ncurses != null;
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "sqlcipher-3.1.0"; name = "sqlcipher-${version}";
version = "3.4.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/sqlcipher/sqlcipher/archive/v3.1.0.tar.gz"; owner = "sqlcipher";
sha256 = "1h54hsl7g6ra955aaqid5wxm93fklx2pxz8abcdwf9md3bpfcn18"; repo = "sqlcipher";
rev = "v${version}";
sha256 = "1lwc2m21sax3pnjfqddldbpbwr3b51s91fxz7dd7hf6ly8swnsvp";
}; };
buildInputs = [ readline ncurses openssl tcl ]; buildInputs = [ readline ncurses openssl tcl ];
configureFlags = "--enable-threadsafe --disable-tcl"; configureFlags = [ "--enable-threadsafe" "--disable-tcl" ];
CFLAGS = "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_HAS_CODEC"; 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 ""; LDFLAGS = lib.optional (readline != null) "-lncurses";
meta = { meta = with stdenv.lib; {
homepage = http://sqlcipher.net/; homepage = http://sqlcipher.net/;
description = "Full Database Encryption for SQLite"; description = "Full Database Encryption for SQLite";
platforms = stdenv.lib.platforms.unix; platforms = platforms.unix;
license = licenses.bsd3;
}; };
} }