2009-03-24 11:31:17 +01:00
|
|
|
{stdenv, fetchurl, readline, static ? false}:
|
2006-04-22 20:08:37 +02:00
|
|
|
|
2009-03-12 13:56:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sqlite-3.6.10";
|
2008-06-17 11:39:38 +02:00
|
|
|
|
|
|
|
# Note: don't use the "amalgamation" source release, since it
|
|
|
|
# doesn't install sqlite3.pc.
|
2007-03-21 20:25:58 +01:00
|
|
|
src = fetchurl {
|
2009-03-12 13:56:55 +01:00
|
|
|
url = "http://www.sqlite.org/${name}.tar.gz";
|
|
|
|
sha256 = "00dabyjg0530ng52b8lq6hwb6h181wl27ix5l7ayib0am8sdnmr1";
|
2008-06-17 11:39:38 +02:00
|
|
|
};
|
2008-08-29 15:53:28 +02:00
|
|
|
|
|
|
|
buildInputs = [readline];
|
|
|
|
|
2009-03-24 11:31:17 +01:00
|
|
|
configureFlags = ''
|
|
|
|
${if static then "--disable-shared --enable-static" else "--disable-static"}
|
|
|
|
--with-readline-inc=-I${readline}/include
|
|
|
|
'';
|
2009-03-12 13:56:55 +01:00
|
|
|
|
2009-03-12 15:37:39 +01:00
|
|
|
postInstall = ''
|
|
|
|
gcc -L$out/lib -I$out/include tool/genfkey.c -lsqlite3 -o $out/bin/genfkey
|
|
|
|
'';
|
|
|
|
|
2008-06-17 11:39:38 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.sqlite.org/;
|
|
|
|
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";
|
2007-03-21 20:25:58 +01:00
|
|
|
};
|
2006-04-22 20:08:37 +02:00
|
|
|
}
|