2020-04-27 11:59:18 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml
|
|
|
|
, fmt, bigstringaf, bigarray-compat
|
|
|
|
, bigarray-overlap, angstrom, ke, alcotest }:
|
2019-10-20 21:31:33 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "encore";
|
2020-04-27 11:59:18 +01:00
|
|
|
version = "0.5";
|
|
|
|
|
2019-10-20 21:31:33 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz";
|
2020-04-27 11:59:18 +01:00
|
|
|
sha256 = "15n0dla149k9h7migs76wap08z5402qcvxyqxzl887ha6isj3p9n";
|
2019-10-20 21:31:33 +01:00
|
|
|
};
|
2020-04-27 11:59:18 +01:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ angstrom ke fmt bigstringaf bigarray-compat bigarray-overlap ];
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
doCheck = true;
|
2019-10-20 21:31:33 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/encore";
|
|
|
|
description = "Library to generate encoder/decoder which ensure isomorphism";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|