2020-04-27 10:59:18 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml
|
2021-02-16 07:39:46 +00:00
|
|
|
, fmt, bigstringaf, angstrom, alcotest }:
|
2019-10-20 20:31:33 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "encore";
|
2021-03-17 22:46:45 +00:00
|
|
|
version = "0.8";
|
2021-02-16 07:39:46 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
2020-04-27 10:59:18 +00:00
|
|
|
|
2019-10-20 20:31:33 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz";
|
2021-03-17 22:46:45 +00:00
|
|
|
sha256 = "a406bc9863b04bb424692045939d6c170a2bb65a98521ae5608d25b0559344f6";
|
2019-10-20 20:31:33 +00:00
|
|
|
};
|
2020-04-27 10:59:18 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2021-02-16 07:39:46 +00:00
|
|
|
propagatedBuildInputs = [ angstrom fmt bigstringaf ];
|
2020-04-27 10:59:18 +00:00
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
doCheck = true;
|
2019-10-20 20:31:33 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|