git.iko.soy/typeable/nixpkgs
on master help sign in
sqlite3_analyzer: 3.8.10.1 -> 3.17.0
eba71dfmimadrid
pkgs/development/libraries/sqlite/sqlite3_analyzer.nix+11−19
@@ -1,35 +1,27 @@
1{ lib, stdenv, fetchurl, unzip, tcl }:
1{ lib, stdenv, fetchurl, unzip, tcl }:
2
2
3stdenv.mkDerivation {
3stdenv.mkDerivation {
4− name = "sqlite3_analyzer-3.8.10.1";
4+ name = "sqlite3_analyzer-3.17.0";
5
5
6 src = fetchurl {
6 src = fetchurl {
7− url = "https://www.sqlite.org/2015/sqlite-src-3081001.zip";
7+ url = "https://www.sqlite.org/2017/sqlite-src-3170000.zip";
8− sha1 = "6z7w8y69jxr0xwxbhs8z3zf56zfs5x7z";
8+ sha256 = "1hs8nzk2pjr4fhhrwcyqwpa24gd4ndp6f0japykg5wfadgp4nxc6";
9 };
9 };
10
10
11− buildInputs = [ unzip tcl ];
11+ nativeBuildInputs = [ unzip ];
12+ buildInputs = [ tcl ];
12
13
13− # A bug in the latest release of sqlite3 prevents bulding sqlite3_analyzer.
14+ makeFlags = [ "sqlite3_analyzer" ];
14− # Hopefully this work-around can be removed for future releases.
15− postConfigure = ''
16− substituteInPlace Makefile \
17− --replace '"#define SQLITE_ENABLE_DBSTAT_VTAB"' '"#define SQLITE_ENABLE_DBSTAT_VTAB 1"'
18− '';
19−
20− buildPhase = ''
21− make sqlite3_analyzer
22− '';
23
15
24 installPhase = ''
16 installPhase = ''
25− mkdir -p "$out/bin"
17+ install -Dm755 sqlite3_analyzer \
26− mv sqlite3_analyzer "$out/bin"
18+ "$out/bin/sqlite3_analyzer"
27 '';
19 '';
28
20
29− meta = {
21+ meta = with stdenv.lib; {
30 homepage = http://www.sqlite.org/;
22 homepage = http://www.sqlite.org/;
31 description = "A tool that shows statistics about sqlite databases";
23 description = "A tool that shows statistics about sqlite databases";
32− platforms = stdenv.lib.platforms.unix;
24+ platforms = platforms.unix;
33− maintainers = with stdenv.lib.maintainers; [ pesterhazy ];
25+ maintainers = with maintainers; [ pesterhazy ];
34 };
26 };
35}
27}