Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 31 lines 876 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 pname = "sqlite-analyzer"; 9 version = "3.33.0"; 10 11 src = assert version == sqlite.version; fetchurl { 12 url = "https://sqlite.org/2020/sqlite-src-${archiveVersion version}.zip"; 13 sha256 = "1f09srlrmcab1sf8j2d89s2kvknlbxk7mbsiwpndw9mall27dgwh"; 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 = "https://www.sqlite.org"; 27 license = licenses.publicDomain; 28 maintainers = with maintainers; [ pesterhazy ]; 29 platforms = platforms.unix; 30 }; 31}