sqlcipher: fix static build
This commit is contained in:
parent
9978f777fc
commit
3e3e445d8d
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitHub, openssl, tcl, installShellFiles, readline ? null, ncurses ? null }:
|
||||
{ stdenv, lib, fetchFromGitHub, openssl, tcl, installShellFiles, buildPackages, readline ? null, ncurses ? null }:
|
||||
|
||||
assert readline != null -> ncurses != null;
|
||||
|
||||
|
@ -13,14 +13,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-E23PTNnVZbBQtHL0YjUwHNVUA76XS8rlARBOVvX6zZw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = [ readline ncurses openssl tcl ];
|
||||
nativeBuildInputs = [ installShellFiles tcl ];
|
||||
buildInputs = [ readline ncurses openssl ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
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";
|
||||
BUILD_CC = "$(CC_FOR_BUILD)";
|
||||
|
||||
doCheck = false; # fails. requires tcl?
|
||||
|
||||
|
|
Loading…
Reference in a new issue