ocamlPackages.encore: init at 0.3

This commit is contained in:
Vincent Laporte 2019-10-20 20:31:33 +00:00 committed by Vincent Laporte
parent 9f26063077
commit ea5684b438
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ lib, buildDunePackage, fetchurl, ocaml, alcotest, angstrom, ke }:
buildDunePackage rec {
pname = "encore";
version = "0.3";
src = fetchurl {
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz";
sha256 = "05nv6yms5axsmq9cspr7884rz5kirj50izx3vdm89q4yl186qykl";
};
propagatedBuildInputs = [ angstrom ke ];
checkInputs = lib.optional doCheck alcotest;
doCheck = lib.versions.majorMinor ocaml.version != "4.07";
meta = {
homepage = "https://github.com/mirage/encore";
description = "Library to generate encoder/decoder which ensure isomorphism";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}

View file

@ -233,6 +233,8 @@ let
elpi = callPackage ../development/ocaml-modules/elpi { };
encore = callPackage ../development/ocaml-modules/encore { };
enumerate = callPackage ../development/ocaml-modules/enumerate { };
eqaf = callPackage ../development/ocaml-modules/eqaf { };