mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Add sqlite3_analyzer
This commit is contained in:
parent
7808efe5b7
commit
c4a8acd983
35
pkgs/development/libraries/sqlite/sqlite3_analyzer.nix
Normal file
35
pkgs/development/libraries/sqlite/sqlite3_analyzer.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib, stdenv, fetchurl, unzip, tcl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sqlite3_analzer-3.8.10.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.sqlite.org/2015/sqlite-src-3081001.zip";
|
||||
sha1 = "6z7w8y69jxr0xwxbhs8z3zf56zfs5x7z";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip tcl ];
|
||||
|
||||
# A bug in the latest release of sqlite3 prevents bulding sqlite3_analyzer.
|
||||
# Hopefully this work-around can be removed for future releases.
|
||||
postConfigure = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '"#define SQLITE_ENABLE_DBSTAT_VTAB"' '"#define SQLITE_ENABLE_DBSTAT_VTAB 1"'
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make sqlite3_analyzer
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
mv sqlite3_analyzer "$out/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.sqlite.org/;
|
||||
description = "A tool that shows statistics about sqlite databases";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with stdenv.lib.maintainers; [ pesterhazy ];
|
||||
};
|
||||
}
|
@ -7818,6 +7818,8 @@ let
|
||||
|
||||
sqlite = lowPrio (callPackage ../development/libraries/sqlite { });
|
||||
|
||||
sqlite3_analyzer = lowPrio (callPackage ../development/libraries/sqlite/sqlite3_analyzer.nix { });
|
||||
|
||||
sqlite-interactive = appendToName "interactive" (sqlite.override { interactive = true; });
|
||||
|
||||
sqlcipher = lowPrio (callPackage ../development/libraries/sqlcipher {
|
||||
|
Loading…
Reference in New Issue
Block a user