1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/development/libraries/sqlcipher/default.nix

30 lines
880 B
Nix
Raw Normal View History

2016-08-18 00:19:45 +01:00
{ stdenv, lib, fetchFromGitHub, openssl, tcl, readline ? null, ncurses ? null }:
2014-07-02 10:18:27 +01:00
assert readline != null -> ncurses != null;
2016-08-18 00:19:45 +01:00
stdenv.mkDerivation rec {
name = "sqlcipher-${version}";
version = "3.4.0";
2014-07-02 10:18:27 +01:00
2016-08-18 00:19:45 +01:00
src = fetchFromGitHub {
owner = "sqlcipher";
repo = "sqlcipher";
rev = "v${version}";
sha256 = "1lwc2m21sax3pnjfqddldbpbwr3b51s91fxz7dd7hf6ly8swnsvp";
2014-07-02 10:18:27 +01:00
};
buildInputs = [ readline ncurses openssl tcl ];
2016-08-18 00:19:45 +01:00
configureFlags = [ "--enable-threadsafe" "--disable-tcl" ];
2014-07-02 10:18:27 +01:00
2016-08-18 00:19:45 +01:00
CFLAGS = [ "-DSQLITE_ENABLE_COLUMN_METADATA=1" "-DSQLITE_SECURE_DELETE=1" "-DSQLITE_ENABLE_UNLOCK_NOTIFY=1" "-DSQLITE_HAS_CODEC" ];
LDFLAGS = lib.optional (readline != null) "-lncurses";
2014-07-02 10:18:27 +01:00
2016-08-18 00:19:45 +01:00
meta = with stdenv.lib; {
homepage = http://sqlcipher.net/;
2014-07-02 10:18:27 +01:00
description = "Full Database Encryption for SQLite";
2016-08-18 00:19:45 +01:00
platforms = platforms.unix;
license = licenses.bsd3;
2014-07-02 10:18:27 +01:00
};
}