1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 02:14:36 +00:00
nixpkgs/pkgs/development/libraries/sqlite/analyzer.nix
Andreas Rammhold 61017517a3 sqlite: 3.28.0 -> 3.30.0
Also bumps sqlite3_analyze as those have to be kept in sync
2019-10-21 21:58:37 +02: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.30.0";
src = assert version == sqlite.version; fetchurl {
url = "https://sqlite.org/2019/sqlite-src-${archiveVersion version}.zip";
sha256 = "0d4i87q0f618pmrgax0mr5x7m8bywikrwjvixag3biyhgl5rx7fd";
};
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;
};
}