diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2022-10-18 11:50:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 11:50:56 +0200 |
commit | 6f4f07d3b7f42137466f3fd4a6a976e0c3786703 (patch) | |
tree | eed00bb0bdeef47579410ee3a206e2fa8bdfc456 /pkgs/development/ocaml-modules/class_group_vdf | |
parent | f8ec59a855b03ad92dbee8b263c7536b4cf393f6 (diff) |
ocamlPackages.class_group_vdf: init at 0.0.4 (#196366)
Diffstat (limited to 'pkgs/development/ocaml-modules/class_group_vdf')
-rw-r--r-- | pkgs/development/ocaml-modules/class_group_vdf/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/class_group_vdf/default.nix b/pkgs/development/ocaml-modules/class_group_vdf/default.nix new file mode 100644 index 0000000000000..181228e28a0a9 --- /dev/null +++ b/pkgs/development/ocaml-modules/class_group_vdf/default.nix @@ -0,0 +1,44 @@ +{ lib, fetchFromGitLab, buildDunePackage +, gmp, pkg-config, dune-configurator +, zarith, integers +, alcotest, bisect_ppx }: + +buildDunePackage rec { + pname = "class_group_vdf"; + version = "0.0.4"; + duneVersion = "3"; + + src = fetchFromGitLab { + owner = "nomadic-labs/cryptography"; + repo = "ocaml-chia-vdf"; + rev = "v${version}"; + sha256 = "sha256-KvpnX2DTUyfKARNWHC2lLBGH2Ou2GfRKjw05lu4jbBs="; + }; + + minimalOCamlVersion = "4.08"; + + nativeBuildInputs = [ + gmp + pkg-config + dune-configurator + ]; + + propagatedBuildInputs = [ + zarith + integers + ]; + + checkInputs = [ + alcotest + bisect_ppx + ]; + + doCheck = true; + + meta = { + description = "Verifiable Delay Functions bindings to Chia's VDF"; + homepage = "https://gitlab.com/nomadic-labs/tezos"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} |