2018-05-27 06:43:26 +01:00
|
|
|
{ stdenv, fetchurl, unzip, sqlite, tcl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
archiveVersion = import ./archive-version.nix stdenv.lib;
|
|
|
|
in
|
2018-05-22 22:47:18 +01:00
|
|
|
|
2018-05-22 21:43:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sqlite-analyzer-${version}";
|
2018-11-06 04:41:29 +00:00
|
|
|
version = "3.25.3";
|
2018-05-27 06:43:26 +01:00
|
|
|
|
|
|
|
src = assert version == sqlite.version; fetchurl {
|
|
|
|
url = "https://sqlite.org/2018/sqlite-src-${archiveVersion version}.zip";
|
2018-11-06 04:41:29 +00:00
|
|
|
sha256 = "08b4fs9mrah5gxl1865smlqs2ba6g7k7d6pfa084i6d78342p4n7";
|
2018-05-27 06:43:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ tcl ];
|
2018-05-22 21:43:04 +01:00
|
|
|
|
|
|
|
makeFlags = [ "sqlite3_analyzer" ];
|
2018-05-27 06:43:26 +01:00
|
|
|
|
2018-05-22 21:43:04 +01: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;
|
|
|
|
homepage = http://www.sqlite.org;
|
2018-08-11 13:32:05 +01:00
|
|
|
license = licenses.publicDomain;
|
2018-05-22 21:43:04 +01:00
|
|
|
maintainers = with maintainers; [ pesterhazy ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|