2019-10-11 08:02:16 +02:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigstringaf }:
|
2017-12-05 19:16:19 +01:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "faraday";
|
2022-03-24 14:50:56 +01:00
|
|
|
version = "0.8.1";
|
2020-11-22 09:25:35 +01:00
|
|
|
|
|
|
|
useDune2 = true;
|
2017-12-05 19:16:19 +01:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2017-12-05 19:16:19 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
2018-11-05 11:21:46 +01:00
|
|
|
repo = pname;
|
2017-12-05 19:16:19 +01:00
|
|
|
rev = version;
|
2022-03-24 14:50:56 +01:00
|
|
|
sha256 = "sha256-eeR+nst/r2iFxCDmRS+LGr3yl/o27DcsS30YAu1GJmc=";
|
2017-12-05 19:16:19 +01:00
|
|
|
};
|
|
|
|
|
2020-11-22 09:25:35 +01:00
|
|
|
checkInputs = [ alcotest ];
|
2019-04-06 16:37:32 +02:00
|
|
|
propagatedBuildInputs = [ bigstringaf ];
|
2020-11-22 09:25:35 +01:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2017-12-05 19:16:19 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Serialization library built for speed and memory efficiency";
|
2019-04-06 16:37:32 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-12-05 19:16:19 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|