summary refs log tree commit diff
path: root/pkgs/development/libraries/sqlite/analyzer.nix
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-05-22 23:43:04 +0300
committerYegor Timoshenko <yegortimoshenko@riseup.net>2018-05-22 23:43:04 +0300
commit57200f58f476b2c7e8b1cce69f0ef069754e9231 (patch)
tree2e5cf2f916c62c996e28fe4cd271cb6d2ce87000 /pkgs/development/libraries/sqlite/analyzer.nix
parent8c755ad7b361952e4c7f2992eacae82959aa4fd5 (diff)
downloadnixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar.gz
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar.bz2
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar.lz
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar.xz
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.tar.zst
nixpkgs-57200f58f476b2c7e8b1cce69f0ef069754e9231.zip
sqlite3_analyzer: assert, rename to sqlite-analyzer, clean up
Diffstat (limited to 'pkgs/development/libraries/sqlite/analyzer.nix')
-rw-r--r--pkgs/development/libraries/sqlite/analyzer.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sqlite/analyzer.nix b/pkgs/development/libraries/sqlite/analyzer.nix
new file mode 100644
index 00000000000..4b35c457f12
--- /dev/null
+++ b/pkgs/development/libraries/sqlite/analyzer.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, unzip, sqlite, tcl }:
+
+stdenv.mkDerivation rec {
+  name = "sqlite-analyzer-${version}";
+  version = "3.23.1";
+
+  src = assert version == sqlite.version; fetchurl {
+    url = https://sqlite.org/2018/sqlite-src-3230100.zip;
+    sha256 = "1z3xr8d8ds4l8ndkg34cii13d0w790nlxdkrw6virinqi7wmmd1d";
+  };
+
+  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 = http://www.sqlite.org;
+    maintainers = with maintainers; [ pesterhazy ];
+    platforms = platforms.unix;
+  };
+}