mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 04:46:51 +01: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:
parent
a12bc43499
commit
a3987ff328
1 changed files with 7 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue