aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/sqlite
diff options
context:
space:
mode:
authorDaniel Schaefer <git@danielschaefer.me>2019-09-19 19:58:50 +0200
committerDoron Behar <doron.behar@gmail.com>2020-09-19 18:05:30 +0300
commite714798f27be8a48a0712baf2b150f0e1c7ceeb9 (patch)
tree22636b8163917a245c0d19c005c55efaeab3af56 /pkgs/development/libraries/sqlite
parent61d75820cc77ae1e50cebb4e3102d9b2ebab173b (diff)
sqldiff: init at 3.28.0
Diffstat (limited to 'pkgs/development/libraries/sqlite')
-rw-r--r--pkgs/development/libraries/sqlite/tools.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sqlite/tools.nix b/pkgs/development/libraries/sqlite/tools.nix
new file mode 100644
index 000000000000..6e97f06e6173
--- /dev/null
+++ b/pkgs/development/libraries/sqlite/tools.nix
@@ -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";
+ };
+}