mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-26 20:15:56 +00:00
sqlite: Build canonical source with tcl
See
051e942f5d/autoconf/README.txt (L27-L40)
for motivation
Also adds support for the TCL sqlite library
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
stdenv,
|
||||
fetchurl,
|
||||
unzip,
|
||||
tcl,
|
||||
zlib,
|
||||
readline,
|
||||
ncurses,
|
||||
@@ -32,8 +33,8 @@ stdenv.mkDerivation rec {
|
||||
# nixpkgs-update: no auto update
|
||||
# NB! Make sure to update ./tools.nix src (in the same directory).
|
||||
src = fetchurl {
|
||||
url = "https://sqlite.org/2026/sqlite-autoconf-${archiveVersion version}.tar.gz";
|
||||
hash = "sha256-+9ifhmsUA7tmoUMGVEAInddhAPIjgxTZInSggtTyt7s=";
|
||||
url = "https://sqlite.org/2026/sqlite-src-${archiveVersion version}.zip";
|
||||
hash = "sha256-hREPdi1QeUFNmd1deRe8P/fgWHbmzL0T2ElqOBfyCCk=";
|
||||
};
|
||||
docsrc = fetchurl {
|
||||
url = "https://sqlite.org/2026/sqlite-doc-${archiveVersion version}.zip";
|
||||
@@ -55,6 +56,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
unzip
|
||||
tcl
|
||||
];
|
||||
buildInputs = [
|
||||
zlib
|
||||
@@ -74,10 +76,13 @@ stdenv.mkDerivation rec {
|
||||
# on a per-output basis.
|
||||
setOutputFlags = false;
|
||||
|
||||
env.TCLLIBDIR = "${placeholder "out"}/lib";
|
||||
|
||||
configureFlags = [
|
||||
"--bindir=${placeholder "bin"}/bin"
|
||||
"--includedir=${placeholder "dev"}/include"
|
||||
"--libdir=${placeholder "out"}/lib"
|
||||
"--with-tcl=${lib.getLib tcl}/lib"
|
||||
]
|
||||
++ lib.optional (!interactive) "--disable-readline"
|
||||
# autosetup only looks up readline.h in predefined set of directories.
|
||||
|
||||
Reference in New Issue
Block a user