3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/sqlite/analyzer.nix

32 lines
876 B
Nix
Raw Normal View History

{ stdenv, fetchurl, unzip, sqlite, tcl }:
let
archiveVersion = import ./archive-version.nix stdenv.lib;
in
stdenv.mkDerivation rec {
pname = "sqlite-analyzer";
2020-06-19 18:24:53 +01:00
version = "3.32.3";
src = assert version == sqlite.version; fetchurl {
2020-01-22 20:22:12 +00:00
url = "https://sqlite.org/2020/sqlite-src-${archiveVersion version}.zip";
2020-06-19 18:24:53 +01:00
sha256 = "1fgmslzf013ry3a7g2vms7zyg24gs53gfj308r6ki4inbn3g04lk";
};
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";
2018-08-11 13:32:05 +01:00
license = licenses.publicDomain;
maintainers = with maintainers; [ pesterhazy ];
platforms = platforms.unix;
};
}