diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/encore/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/encore/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/encore/default.nix b/nixpkgs/pkgs/development/ocaml-modules/encore/default.nix new file mode 100644 index 000000000000..fc54eb1a4781 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/encore/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildDunePackage +, fetchurl +, fmt +, bigstringaf +, angstrom +, alcotest +}: + +buildDunePackage rec { + pname = "encore"; + version = "0.8"; + + minimalOCamlVersion = "4.08"; + + src = fetchurl { + url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz"; + sha256 = "a406bc9863b04bb424692045939d6c170a2bb65a98521ae5608d25b0559344f6"; + }; + + duneVersion = "3"; + + propagatedBuildInputs = [ angstrom fmt bigstringaf ]; + checkInputs = [ alcotest ]; + doCheck = true; + + meta = { + homepage = "https://github.com/mirage/encore"; + description = "Library to generate encoder/decoder which ensure isomorphism"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.vbgl ]; + }; +} |