depot/pkgs/development/ocaml-modules/caqti/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
929 B
Nix

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