sqldiff: init at 3.28.0
This commit is contained in:
parent
61d75820cc
commit
e714798f27
2 changed files with 46 additions and 1 deletions
43
pkgs/development/libraries/sqlite/tools.nix
Normal file
43
pkgs/development/libraries/sqlite/tools.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue