about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/caqti/default.nix
blob: 68eb2657b324de400b3f23e1dd6cbf57063f93e8 (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
{ lib, fetchurl, buildDunePackage, ocaml
, cppo, logs, ptime, uri, bigstringaf
, re, cmdliner, alcotest
}:

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

  minimalOCamlVersion = "4.04";
  duneVersion = "3";

  src = fetchurl {
    url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
    sha256 = "sha256-PQBgJBNx3IcE6/vyNIf26a2xStU22LBhff8eM6UPaJ4=";
  };

  nativeBuildInputs = [ cppo ];
  propagatedBuildInputs = [ logs ptime uri bigstringaf ];
  checkInputs = [ re cmdliner alcotest ];

  doCheck = lib.versionAtLeast ocaml.version "4.08";

  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";
  };
}