3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/sqlite/analyzer.nix
2020-02-11 07:57:14 +01:00

32 lines
872 B
Nix

{ stdenv, fetchurl, unzip, sqlite, tcl }:
let
archiveVersion = import ./archive-version.nix stdenv.lib;
in
stdenv.mkDerivation rec {
pname = "sqlite-analyzer";
version = "3.31.0";
src = assert version == sqlite.version; fetchurl {
url = "https://sqlite.org/2020/sqlite-src-${archiveVersion version}.zip";
sha256 = "1dz3s3q9gsxxfj9wp4lqndzpwd1hcvm42yqn02p0l0bs6bw0mp5l";
};
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;
license = licenses.publicDomain;
maintainers = with maintainers; [ pesterhazy ];
platforms = platforms.unix;
};
}