mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
7118af7a88
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/sqlcipher/versions
32 lines
923 B
Nix
32 lines
923 B
Nix
{ stdenv, lib, fetchFromGitHub, openssl, tcl, readline ? null, ncurses ? null }:
|
|
|
|
assert readline != null -> ncurses != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sqlcipher-${version}";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sqlcipher";
|
|
repo = "sqlcipher";
|
|
rev = "v${version}";
|
|
sha256 = "0w0f4pg3jfzismpgqnbf60bjbbll2ang48216bc4m20mm2dpp5ar";
|
|
};
|
|
|
|
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";
|
|
|
|
doCheck = false; # fails. requires tcl?
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://sqlcipher.net/;
|
|
description = "Full Database Encryption for SQLite";
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|