mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

This update includes a move from autotools to autosetup, which requires from build/configure flag changes. 3.49.1 included some bugs with static compilation which 3.49.2 fixes. 3.50.1 was released during the merge request's lifetime and included for further stabilization improvements to sqlite. NB first iterations of this included tcl in the inputs; but per some scattered repository comments, tcl is currently unreliable (broken?) in static.
70 lines
1.7 KiB
Nix
70 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
unzip,
|
|
sqlite,
|
|
tcl,
|
|
}:
|
|
|
|
let
|
|
archiveVersion = import ./archive-version.nix lib;
|
|
mkTool =
|
|
{
|
|
pname,
|
|
makeTarget,
|
|
description,
|
|
homepage,
|
|
mainProgram,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
inherit pname;
|
|
version = "3.50.1";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src =
|
|
assert version == sqlite.version;
|
|
fetchurl {
|
|
url = "https://sqlite.org/2025/sqlite-src-${archiveVersion version}.zip";
|
|
hash = "sha256-kJBZd3PGCknK67PBrFfbYm+sTZfLUYkIFai1KaTZw9w=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [ tcl ];
|
|
|
|
makeFlags = [ makeTarget ];
|
|
|
|
installPhase = "install -Dt $out/bin ${makeTarget}";
|
|
|
|
meta = with lib; {
|
|
inherit description homepage mainProgram;
|
|
downloadPage = "http://sqlite.org/download.html";
|
|
license = licenses.publicDomain;
|
|
maintainers = with maintainers; [ johnazoidberg ];
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
sqldiff = mkTool {
|
|
pname = "sqldiff";
|
|
makeTarget = "sqldiff";
|
|
description = "Tool that displays the differences between SQLite databases";
|
|
homepage = "https://www.sqlite.org/sqldiff.html";
|
|
mainProgram = "sqldiff";
|
|
};
|
|
sqlite-analyzer = mkTool {
|
|
pname = "sqlite-analyzer";
|
|
makeTarget = "sqlite3_analyzer";
|
|
description = "Tool that shows statistics about SQLite databases";
|
|
homepage = "https://www.sqlite.org/sqlanalyze.html";
|
|
mainProgram = "sqlite3_analyzer";
|
|
};
|
|
sqlite-rsync = mkTool {
|
|
pname = "sqlite-rsync";
|
|
makeTarget = "sqlite3_rsync";
|
|
description = "Database remote-copy tool for SQLite";
|
|
homepage = "https://www.sqlite.org/rsync.html";
|
|
mainProgram = "sqlite3_rsync";
|
|
};
|
|
}
|