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