d3288dd878
svn path=/nixpkgs/branches/stdenv-updates/; revision=19509
34 lines
980 B
Nix
34 lines
980 B
Nix
{stdenv, fetchurl, readline, tcl, static ? false}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sqlite-3.6.22";
|
|
|
|
# Note: don't use the "amalgamation" source release, since it
|
|
# doesn't install sqlite3.pc.
|
|
src = fetchurl {
|
|
url = "http://www.sqlite.org/${name}.tar.gz";
|
|
sha256 = "1xjpryhrk6b3h2y0hwrzaa1vj44pbhgm65f8fj73kd5fbj4ikk68";
|
|
};
|
|
|
|
buildInputs = [readline tcl];
|
|
|
|
configureFlags = ''
|
|
CFLAGS=-O3
|
|
--enable-load-extension
|
|
${if static then "--disable-shared --enable-static" else ""}
|
|
--enable-amalgamation
|
|
--enable-threadsafe
|
|
--disable-cross-thread-connections
|
|
--disable-tcl
|
|
--disable-tempstore
|
|
--with-readline-inc=-I${readline}/include
|
|
'';
|
|
|
|
NIX_CFLAGS_COMPILE = "-DSQLITE_ENABLE_COLUMN_METADATA=1";
|
|
NIX_CFLAGS_LINK = "-ldl"; # needed for --enable-load-extension
|
|
|
|
meta = {
|
|
homepage = http://www.sqlite.org/;
|
|
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";
|
|
};
|
|
}
|