forked from mirrors/nixpkgs
Merge pull request #132573 from yu-re-ka/feature/sqlcipher-static
sqlcipher: fix cross build
This commit is contained in:
commit
5e1e2914eb
|
@ -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