From 6c6435606a8b7b937a2036aa51e2e68418e254a1 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 11 Dec 2023 00:26:40 +0100 Subject: [PATCH] tntdb: 1.3 -> 1.4 --- pkgs/development/libraries/tntdb/default.nix | 37 ++++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/tntdb/default.nix b/pkgs/development/libraries/tntdb/default.nix index a21a71b89bfd..9080893d5e44 100644 --- a/pkgs/development/libraries/tntdb/default.nix +++ b/pkgs/development/libraries/tntdb/default.nix @@ -1,22 +1,45 @@ -{ lib, stdenv, fetchurl, cxxtools, postgresql, libmysqlclient, sqlite, zlib, openssl }: +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, cxxtools +, postgresql +, libmysqlclient +, sqlite +, zlib +, openssl +}: stdenv.mkDerivation rec { pname = "tntdb"; - version = "1.3"; + version = "1.4"; - src = fetchurl { - url = "http://www.tntnet.org/download/${pname}-${version}.tar.gz"; - sha256 = "0js79dbvkic30bzw1pf26m64vs2ssw2sbj55w1dc0sy69dlv4fh9"; + src = fetchFromGitHub { + owner = "maekitalo"; + repo = "tntdb"; + rev = "V${version}"; + hash = "sha256-ciqHv077sXnvCx+TJjdY1uPrlCP7/s972koXjGLgWhU="; }; - buildInputs = [ cxxtools postgresql libmysqlclient sqlite zlib openssl ]; + nativeBuildInputs = [ + autoreconfHook + ]; + + buildInputs = [ + cxxtools + postgresql + libmysqlclient + sqlite + zlib + openssl + ]; enableParallelBuilding = true; meta = with lib; { homepage = "http://www.tntnet.org/tntdb.html"; description = "C++ library which makes accessing SQL databases easy and robust"; - platforms = platforms.linux ; + platforms = platforms.linux; license = licenses.lgpl21; maintainers = [ maintainers.juliendehos ]; };