about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/caqti/default.nix
blob: 218f4cf3c120c7eb86796d6592f0f828057384e4 (plain) (blame)
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
{ lib
, fetchurl
, buildDunePackage
, angstrom
, bigstringaf
, domain-name
, dune-site
, ipaddr
, logs
, lwt-dllist
, mtime
, ptime
, uri
}:

buildDunePackage rec {
  pname = "caqti";
  version = "2.1.1";

  minimalOCamlVersion = "4.08";

  src = fetchurl {
    url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
    hash = "sha256-SDpTX0HiZBkX/BgyzkrRX/w/ToKDsbMBiiYXNJWDCQo=";
  };

  buildInputs = [ dune-site ];
  propagatedBuildInputs = [ angstrom bigstringaf domain-name ipaddr logs lwt-dllist mtime ptime uri ];

  # Checks depend on caqti-driver-sqlite3 (circural dependency)
  doCheck = false;

  meta = {
    description = "Unified interface to relational database libraries";
    license = with lib.licenses; [ lgpl3Plus ocamlLgplLinkingException ];
    maintainers = with lib.maintainers; [ bcc32 ];
    homepage = "https://github.com/paurkedal/ocaml-caqti";
  };
}