2015-05-20 14:54:18 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip, tcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-02-22 01:32:12 +00:00
|
|
|
name = "sqlite3_analyzer-3.22.0";
|
2015-05-20 14:54:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-22 01:32:12 +00:00
|
|
|
url = "https://www.sqlite.org/2018/sqlite-src-3220000.zip";
|
|
|
|
sha256 = "04w97jj1659vl84rr73wg1mhj6by8r5075rzpn2xp42n537a7ibv";
|
2015-05-20 14:54:18 +01:00
|
|
|
};
|
|
|
|
|
2017-03-04 10:54:27 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ tcl ];
|
2015-05-20 14:54:18 +01:00
|
|
|
|
2017-03-04 10:54:27 +00:00
|
|
|
makeFlags = [ "sqlite3_analyzer" ];
|
2015-05-20 14:54:18 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-03-04 10:54:27 +00:00
|
|
|
install -Dm755 sqlite3_analyzer \
|
|
|
|
"$out/bin/sqlite3_analyzer"
|
2015-05-20 14:54:18 +01:00
|
|
|
'';
|
|
|
|
|
2017-03-04 10:54:27 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-20 14:54:18 +01:00
|
|
|
homepage = http://www.sqlite.org/;
|
|
|
|
description = "A tool that shows statistics about sqlite databases";
|
2017-03-04 10:54:27 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pesterhazy ];
|
2015-05-20 14:54:18 +01:00
|
|
|
};
|
|
|
|
}
|