From b9f3d3d3ac2e9aad7b684da3c69d813b1723d2ae Mon Sep 17 00:00:00 2001 From: Ulrik Strid Date: Tue, 11 Oct 2022 09:20:19 +0200 Subject: [PATCH] ocamlPackages.mec: init at 0.1.0 --- .../development/ocaml-modules/mec/default.nix | 39 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mec/default.nix diff --git a/pkgs/development/ocaml-modules/mec/default.nix b/pkgs/development/ocaml-modules/mec/default.nix new file mode 100644 index 000000000000..8381cf821ed3 --- /dev/null +++ b/pkgs/development/ocaml-modules/mec/default.nix @@ -0,0 +1,39 @@ +{ lib, fetchzip, buildDunePackage, ocaml +, zarith, eqaf, bigarray-compat, hex, ff-sig, ff +, alcotest, bisect_ppx }: + +buildDunePackage rec { + pname = "mec"; + version = "0.1.0"; + src = fetchzip { + url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${version}/ocaml-ec-${version}.tar.bz2"; + sha256 = "sha256-uIcGj/exSfuuzsv6C/bnJXpYRu3OY3dcKMW/7+qwi2U="; + }; + + minimalOCamlVersion = "4.12"; + + propagatedBuildInputs = [ + eqaf + bigarray-compat + hex + ff-sig + ff + alcotest + ]; + + buildInputs = [ + zarith + ]; + + checkInputs = [ + alcotest + bisect_ppx + ]; + + meta = { + description = "Mec - Mini Elliptic Curve library"; + homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index cf5b4fcb5987..49bd07052450 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -793,6 +793,8 @@ let mdx = callPackage ../development/ocaml-modules/mdx { }; + mec = callPackage ../development/ocaml-modules/mec { }; + menhir = callPackage ../development/ocaml-modules/menhir { }; menhirLib = callPackage ../development/ocaml-modules/menhir/lib.nix { };