sqldiff: init at 3.28.0

This commit is contained in:
Daniel Schaefer 2019-09-19 19:58:50 +02:00 committed by Doron Behar
parent 61d75820cc
commit e714798f27
2 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,43 @@
{ stdenv, fetchurl, unzip, sqlite, tcl }:
let
archiveVersion = import ./archive-version.nix stdenv.lib;
mkTool = { pname, makeTarget, description, homepage }: stdenv.mkDerivation rec {
inherit pname;
version = "3.28.0";
src = assert version == sqlite.version; fetchurl {
url = "https://sqlite.org/2019/sqlite-src-${archiveVersion version}.zip";
sha256 = "15v57b113bpgcshfsx5jw93szar3da94rr03i053xhl15la7jllh";
};
nativeBuildInputs = [ unzip ];
buildInputs = [ tcl ];
makeFlags = [ makeTarget ];
installPhase = "install -Dt $out/bin ${makeTarget}";
meta = with stdenv.lib; {
inherit description homepage;
downloadPage = http://sqlite.org/download.html;
license = licenses.publicDomain;
maintainers = with maintainers; [ pesterhazy johnazoidberg ];
platforms = platforms.unix;
};
};
in
{
sqldiff = mkTool {
pname = "sqldiff";
makeTarget = "sqldiff";
description = "A tool that displays the differences between SQLite databases";
homepage = "https://www.sqlite.org/sqldiff.html";
};
sqlite-analyzer = mkTool {
pname = "sqlite-analyzer";
makeTarget = "sqlite3_analyzer";
description = "A tool that shows statistics about SQLite databases";
homepage = "https://www.sqlite.org/sqlanalyze.html";
};
}

View file

@ -15412,7 +15412,9 @@ in
sqlite = lowPrio (callPackage ../development/libraries/sqlite { });
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/analyzer.nix { });
sqlite-analyzer = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqlite-analyzer;
sqldiff = lowPrio (callPackage ../development/libraries/sqlite/tools.nix { }).sqldiff;
sqlar = callPackage ../development/libraries/sqlite/sqlar.nix { };