at 18.03-beta 685 B view raw
1{ lib, stdenv, fetchurl, unzip, tcl }: 2 3stdenv.mkDerivation { 4 name = "sqlite3_analyzer-3.20.1"; 5 6 src = fetchurl { 7 url = "https://www.sqlite.org/2017/sqlite-src-3200100.zip"; 8 sha256 = "0aicmapa99141hjncyxwg66ndhr16nwpbqy27x79fg1ikzhwlnv6"; 9 }; 10 11 nativeBuildInputs = [ unzip ]; 12 buildInputs = [ tcl ]; 13 14 makeFlags = [ "sqlite3_analyzer" ]; 15 16 installPhase = '' 17 install -Dm755 sqlite3_analyzer \ 18 "$out/bin/sqlite3_analyzer" 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = http://www.sqlite.org/; 23 description = "A tool that shows statistics about sqlite databases"; 24 platforms = platforms.unix; 25 maintainers = with maintainers; [ pesterhazy ]; 26 }; 27}