sqlite3_analyzer: assert, rename to sqlite-analyzer, clean up

This commit is contained in:
Yegor Timoshenko
2018-05-22 23:43:04 +03:00
parent 8c755ad7b3
commit 57200f58f4
4 changed files with 28 additions and 28 deletions

View File

@@ -0,0 +1,26 @@
{ stdenv, fetchurl, unzip, sqlite, tcl }:
stdenv.mkDerivation rec {
name = "sqlite-analyzer-${version}";
version = "3.23.1";
src = assert version == sqlite.version; fetchurl {
url = https://sqlite.org/2018/sqlite-src-3230100.zip;
sha256 = "1z3xr8d8ds4l8ndkg34cii13d0w790nlxdkrw6virinqi7wmmd1d";
};
nativeBuildInputs = [ unzip ];
buildInputs = [ tcl ];
makeFlags = [ "sqlite3_analyzer" ];
installPhase = "install -Dt $out/bin sqlite3_analyzer";
meta = with stdenv.lib; {
description = "A tool that shows statistics about SQLite databases";
downloadPage = http://sqlite.org/download.html;
homepage = http://www.sqlite.org;
maintainers = with maintainers; [ pesterhazy ];
platforms = platforms.unix;
};
}

View File

@@ -1,27 +0,0 @@
{ lib, stdenv, fetchurl, unzip, tcl }:
stdenv.mkDerivation {
name = "sqlite3_analyzer-3.23.1";
src = fetchurl {
url = https://sqlite.org/2018/sqlite-src-3230100.zip;
sha256 = "1z3xr8d8ds4l8ndkg34cii13d0w790nlxdkrw6virinqi7wmmd1d";
};
nativeBuildInputs = [ unzip ];
buildInputs = [ tcl ];
makeFlags = [ "sqlite3_analyzer" ];
installPhase = ''
install -Dm755 sqlite3_analyzer \
"$out/bin/sqlite3_analyzer"
'';
meta = with stdenv.lib; {
homepage = http://www.sqlite.org/;
description = "A tool that shows statistics about sqlite databases";
platforms = platforms.unix;
maintainers = with maintainers; [ pesterhazy ];
};
}