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