mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
b364139f2b
Their last commit was caf43ad5af
from 2015.
Thank you for your contributions.
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, unzip, sqlite, tcl, Foundation }:
|
|
|
|
let
|
|
archiveVersion = import ./archive-version.nix lib;
|
|
mkTool = { pname, makeTarget, description, homepage }: stdenv.mkDerivation rec {
|
|
inherit pname;
|
|
version = "3.35.2";
|
|
|
|
src = assert version == sqlite.version; fetchurl {
|
|
url = "https://sqlite.org/2021/sqlite-src-${archiveVersion version}.zip";
|
|
sha256 = "00w7qggrdxpcrs4rfpqkjhcghi8pcx6zzjim9wlz6vsrxlr9dwva";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [ tcl ] ++ lib.optional stdenv.isDarwin Foundation;
|
|
|
|
makeFlags = [ makeTarget ];
|
|
|
|
installPhase = "install -Dt $out/bin ${makeTarget}";
|
|
|
|
meta = with lib; {
|
|
inherit description homepage;
|
|
downloadPage = http://sqlite.org/download.html;
|
|
license = licenses.publicDomain;
|
|
maintainers = with maintainers; [ johnazoidberg ];
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
sqldiff = mkTool {
|
|
pname = "sqldiff";
|
|
makeTarget = "sqldiff";
|
|
description = "A tool that displays the differences between SQLite databases";
|
|
homepage = "https://www.sqlite.org/sqldiff.html";
|
|
};
|
|
sqlite-analyzer = mkTool {
|
|
pname = "sqlite-analyzer";
|
|
makeTarget = "sqlite3_analyzer";
|
|
description = "A tool that shows statistics about SQLite databases";
|
|
homepage = "https://www.sqlite.org/sqlanalyze.html";
|
|
};
|
|
}
|