2018-05-27 05:43:26 +00:00
|
|
|
{ stdenv, fetchurl, unzip, sqlite, tcl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
archiveVersion = import ./archive-version.nix stdenv.lib;
|
|
|
|
in
|
2018-05-22 21:47:18 +00:00
|
|
|
|
2018-05-22 20:43:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sqlite-analyzer";
|
2020-08-17 00:18:39 +00:00
|
|
|
version = "3.33.0";
|
2018-05-27 05:43:26 +00:00
|
|
|
|
|
|
|
src = assert version == sqlite.version; fetchurl {
|
2020-01-22 20:22:12 +00:00
|
|
|
url = "https://sqlite.org/2020/sqlite-src-${archiveVersion version}.zip";
|
2020-08-17 00:18:39 +00:00
|
|
|
sha256 = "1f09srlrmcab1sf8j2d89s2kvknlbxk7mbsiwpndw9mall27dgwh";
|
2018-05-27 05:43:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ tcl ];
|
2018-05-22 20:43:04 +00:00
|
|
|
|
|
|
|
makeFlags = [ "sqlite3_analyzer" ];
|
2018-05-27 05:43:26 +00:00
|
|
|
|
2018-05-22 20:43:04 +00:00
|
|
|
installPhase = "install -Dt $out/bin sqlite3_analyzer";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool that shows statistics about SQLite databases";
|
2020-04-01 01:11:51 +00:00
|
|
|
downloadPage = "http://sqlite.org/download.html";
|
|
|
|
homepage = "https://www.sqlite.org";
|
2018-08-11 12:32:05 +00:00
|
|
|
license = licenses.publicDomain;
|
2018-05-22 20:43:04 +00:00
|
|
|
maintainers = with maintainers; [ pesterhazy ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|