3
0
Fork 0
forked from mirrors/nixpkgs

added older version of sqlite for use in DBD-SQLite perl package, which fails with newest one

svn path=/nixpkgs/trunk/; revision=22989
This commit is contained in:
Rob Vermaas 2010-08-06 08:54:27 +00:00
parent accda9616f
commit d8ba69a16e
3 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{ stdenv, fetchurl, readline ? null, ncurses ? null }:
assert readline != null -> ncurses != null;
stdenv.mkDerivation {
name = "sqlite-3.6.23";
src = fetchurl {
url = "http://www.sqlite.org/sqlite-amalgamation-3.6.23.tar.gz";
sha256 = "a5de9ec9273acabc6cb18235df802549c476410b09d58a206e02862b4dc303ae";
};
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/;
description = "A self-contained, serverless, zero-configuration, transactional SQL database engine";
};
}

View file

@ -3737,6 +3737,11 @@ let
ncurses = null;
};
sqlite36 = callPackage ../development/libraries/sqlite/3.6.x.nix {
readline = null;
ncurses = null;
};
sqliteInteractive = appendToName "interactive" (sqlite.override {
inherit readline ncurses;
});

View file

@ -904,7 +904,7 @@ rec {
DBDSQLite = import ../development/perl-modules/DBD-SQLite {
inherit fetchurl buildPerlPackage DBI;
inherit (pkgs) sqlite;
sqlite = pkgs.sqlite36;
};
DBDmysql = import ../development/perl-modules/DBD-mysql {