mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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:
parent
accda9616f
commit
d8ba69a16e
23
pkgs/development/libraries/sqlite/3.6.x.nix
Normal file
23
pkgs/development/libraries/sqlite/3.6.x.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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;
|
||||
});
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user