2015-05-20 15:54:18 +02:00
|
|
|
{ lib, stdenv, fetchurl, unzip, tcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-10-24 17:50:36 +02:00
|
|
|
name = "sqlite3_analyzer-3.20.1";
|
2015-05-20 15:54:18 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-24 17:50:36 +02:00
|
|
|
url = "https://www.sqlite.org/2017/sqlite-src-3200100.zip";
|
|
|
|
sha256 = "0aicmapa99141hjncyxwg66ndhr16nwpbqy27x79fg1ikzhwlnv6";
|
2015-05-20 15:54:18 +02:00
|
|
|
};
|
|
|
|
|
2017-03-04 11:54:27 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ tcl ];
|
2015-05-20 15:54:18 +02:00
|
|
|
|
2017-03-04 11:54:27 +01:00
|
|
|
makeFlags = [ "sqlite3_analyzer" ];
|
2015-05-20 15:54:18 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-03-04 11:54:27 +01:00
|
|
|
install -Dm755 sqlite3_analyzer \
|
|
|
|
"$out/bin/sqlite3_analyzer"
|
2015-05-20 15:54:18 +02:00
|
|
|
'';
|
|
|
|
|
2017-03-04 11:54:27 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-20 15:54:18 +02:00
|
|
|
homepage = http://www.sqlite.org/;
|
|
|
|
description = "A tool that shows statistics about sqlite databases";
|
2017-03-04 11:54:27 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pesterhazy ];
|
2015-05-20 15:54:18 +02:00
|
|
|
};
|
|
|
|
}
|