2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildDunePackage
|
|
|
|
, angstrom
|
|
|
|
, bigstringaf
|
|
|
|
, domain-name
|
|
|
|
, dune-site
|
|
|
|
, ipaddr
|
|
|
|
, logs
|
|
|
|
, lwt-dllist
|
|
|
|
, mtime
|
|
|
|
, ptime
|
|
|
|
, uri
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "caqti";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.1.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-SDpTX0HiZBkX/BgyzkrRX/w/ToKDsbMBiiYXNJWDCQo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildInputs = [ dune-site ];
|
|
|
|
propagatedBuildInputs = [ angstrom bigstringaf domain-name ipaddr logs lwt-dllist mtime ptime uri ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# Checks depend on caqti-driver-sqlite3 (circural dependency)
|
|
|
|
doCheck = false;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Unified interface to relational database libraries";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = with lib.licenses; [ lgpl3Plus ocamlLgplLinkingException ];
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ bcc32 ];
|
|
|
|
homepage = "https://github.com/paurkedal/ocaml-caqti";
|
|
|
|
};
|
|
|
|
}
|