2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigstringaf }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "faraday";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.8.1";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-eeR+nst/r2iFxCDmRS+LGr3yl/o27DcsS30YAu1GJmc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ bigstringaf ];
|
2020-11-24 20:58:05 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Serialization library built for speed and memory efficiency";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|