2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, unzip, sqlite, tcl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
archiveVersion = import ./archive-version.nix stdenv.lib;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sqlite-analyzer";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "3.32.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = assert version == sqlite.version; fetchurl {
|
|
|
|
url = "https://sqlite.org/2020/sqlite-src-${archiveVersion version}.zip";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "1jqhs896cvp9l399mjpbv1x2qbfvq875l1vrgnl3zc4ffdjxs9z0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ tcl ];
|
|
|
|
|
|
|
|
makeFlags = [ "sqlite3_analyzer" ];
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://www.sqlite.org";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ pesterhazy ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|