nixpkgs/pkgs/development/libraries/sqlite/sqlite3_analyzer.nix

28 lines
685 B
Nix
Raw Normal View History

2015-05-20 16:54:18 +03:00
{ lib, stdenv, fetchurl, unzip, tcl }:
stdenv.mkDerivation {
2017-08-03 21:23:07 +03:00
name = "sqlite3_analyzer-3.20.0";
2015-05-20 16:54:18 +03:00
src = fetchurl {
2017-08-03 21:23:07 +03:00
url = "https://www.sqlite.org/2017/sqlite-src-3200000.zip";
sha256 = "1vjbc5i95wildrdfzalrsgai1ziz4m4gbah4wm8qc4jxm1vqwdab";
2015-05-20 16:54:18 +03:00
};
nativeBuildInputs = [ unzip ];
buildInputs = [ tcl ];
2015-05-20 16:54:18 +03:00
makeFlags = [ "sqlite3_analyzer" ];
2015-05-20 16:54:18 +03:00
installPhase = ''
install -Dm755 sqlite3_analyzer \
"$out/bin/sqlite3_analyzer"
2015-05-20 16:54:18 +03:00
'';
meta = with stdenv.lib; {
2015-05-20 16:54:18 +03:00
homepage = http://www.sqlite.org/;
description = "A tool that shows statistics about sqlite databases";
platforms = platforms.unix;
maintainers = with maintainers; [ pesterhazy ];
2015-05-20 16:54:18 +03:00
};
}