mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
d12c869681
Semi-automatic update. These checks were performed: - built on NixOS - found 3.4.2 with grep in /nix/store/ad99ha1vvigs8zaw6mb4cwjb0an9gdlp-sqlcipher-3.4.2 - found 3.4.2 in filename of file in /nix/store/ad99ha1vvigs8zaw6mb4cwjb0an9gdlp-sqlcipher-3.4.2
30 lines
880 B
Nix
30 lines
880 B
Nix
{ stdenv, lib, fetchFromGitHub, openssl, tcl, readline ? null, ncurses ? null }:
|
|
|
|
assert readline != null -> ncurses != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sqlcipher-${version}";
|
|
version = "3.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sqlcipher";
|
|
repo = "sqlcipher";
|
|
rev = "v${version}";
|
|
sha256 = "168wb6fvyap7y8j86fb3xl5rd4wmhiq0dxvx9wxwi5kwm1j4vn1a";
|
|
};
|
|
|
|
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 = lib.optional (readline != null) "-lncurses";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://sqlcipher.net/;
|
|
description = "Full Database Encryption for SQLite";
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|