summaryrefslogtreecommitdiff
path: root/pkgs/by-name/tn/tntdb/package.nix
blob: 19602b64fa581afadba221134025198557f1dd8b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
  cxxtools,
  libpq,
  libmysqlclient,
  sqlite,
  zlib,
  openssl,
}:

stdenv.mkDerivation rec {
  pname = "tntdb";
  version = "1.4";

  src = fetchFromGitHub {
    owner = "maekitalo";
    repo = "tntdb";
    rev = "V${version}";
    hash = "sha256-ciqHv077sXnvCx+TJjdY1uPrlCP7/s972koXjGLgWhU=";
  };

  nativeBuildInputs = [
    autoreconfHook
    libpq.pg_config
  ];

  buildInputs = [
    cxxtools
    libpq
    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;
    license = licenses.lgpl21;
    maintainers = [ maintainers.juliendehos ];
  };
}