Added an interactive variant of sqlite3 that has readline support enabled.

svn path=/nixpkgs/trunk/; revision=19823
This commit is contained in:
Peter Simons 2010-02-04 16:07:15 +00:00
parent 3ab915e1fc
commit 4193cac8de
2 changed files with 12 additions and 4 deletions

View File

@ -1,6 +1,8 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, readline ? null, ncurses ? null }:
stdenv.mkDerivation rec {
assert readline != null -> ncurses != null;
stdenv.mkDerivation {
name = "sqlite-3.6.22";
src = fetchurl {
@ -8,9 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "1k5qyl0v2y4fpkh7vvxvb0irpnl71g0ffhfc3ksm40mrhcdq9qk8";
};
buildInputs = [readline ncurses];
configureFlags = "--enable-threadsafe";
NIX_CFLAGS_COMPILE = "-DSQLITE_ENABLE_COLUMN_METADATA=1";
NIX_CFLAGS_LINK = if readline != null then "-lncurses" else "";
meta = {
homepage = http://www.sqlite.org/;

View File

@ -4682,9 +4682,13 @@ let
inherit fetchurl stdenv libogg;
};
sqlite = import ../development/libraries/sqlite {
sqlite = lowPrio (import ../development/libraries/sqlite {
inherit fetchurl stdenv;
};
});
sqliteInteractive = appendToName "interactive" (import ../development/libraries/sqlite {
inherit fetchurl stdenv readline ncurses;
});
stlport = import ../development/libraries/stlport {
inherit fetchurl stdenv;