at 18.09-beta 31 lines 881 B view raw
1{ stdenv, fetchurl, unzip, sqlite, tcl }: 2 3let 4 archiveVersion = import ./archive-version.nix stdenv.lib; 5in 6 7stdenv.mkDerivation rec { 8 name = "sqlite-analyzer-${version}"; 9 version = "3.24.0"; 10 11 src = assert version == sqlite.version; fetchurl { 12 url = "https://sqlite.org/2018/sqlite-src-${archiveVersion version}.zip"; 13 sha256 = "19ck2sg13i6ga5vapxak42jn6050vpfid0zrmah7jh32mksh58vj"; 14 }; 15 16 nativeBuildInputs = [ unzip ]; 17 buildInputs = [ tcl ]; 18 19 makeFlags = [ "sqlite3_analyzer" ]; 20 21 installPhase = "install -Dt $out/bin sqlite3_analyzer"; 22 23 meta = with stdenv.lib; { 24 description = "A tool that shows statistics about SQLite databases"; 25 downloadPage = http://sqlite.org/download.html; 26 homepage = http://www.sqlite.org; 27 license = licenses.publicDomain; 28 maintainers = with maintainers; [ pesterhazy ]; 29 platforms = platforms.unix; 30 }; 31}