From d240c4e1d1d92b9b4b0a9ab56b5ffdce64212fdb Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Tue, 20 Oct 2020 02:48:38 -0400 Subject: [PATCH] ocamlPackages.bignum: init at 0.13 --- pkgs/development/ocaml-modules/janestreet/0.13.nix | 14 ++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/janestreet/0.13.nix b/pkgs/development/ocaml-modules/janestreet/0.13.nix index 3bea83f0d2b..4266b499d17 100644 --- a/pkgs/development/ocaml-modules/janestreet/0.13.nix +++ b/pkgs/development/ocaml-modules/janestreet/0.13.nix @@ -6,6 +6,7 @@ , ppxlib , re , openssl +, zarith }: rec { @@ -543,6 +544,19 @@ rec { meta.description = "S-expression swiss knife"; }; + zarith_stubs_js = janePackage { + pname = "zarith_stubs_js"; + hash = "0dldnf85rfyx8z63qjly9n8plj8nnkw4i5zrj5vbm7s2wjcfjzj1"; + meta.description = "Javascripts stubs for the Zarith library"; + }; + + bignum = janePackage { + pname = "bignum"; + hash = "0qldyl5mhlffnyps7n9y8qykm0ylrdiw5ii8zlww82zmmpp8zv5x"; + propagatedBuildInputs = [ core_kernel zarith zarith_stubs_js ]; + meta.description = "Core-flavoured wrapper around zarith's arbitrary-precision rationals"; + }; + ### Packages at version 0.11, with dependencies at version 0.12 configurator = janePackage { diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 25032957305..9b0dff7c70e 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1029,7 +1029,7 @@ let janeStreet = if lib.versionOlder "4.08" ocaml.version then import ../development/ocaml-modules/janestreet/0.13.nix { - inherit ctypes dune-configurator janePackage num octavius ppxlib re; + inherit ctypes dune-configurator janePackage num octavius ppxlib re zarith; inherit (pkgs) openssl; } else if lib.versionOlder "4.07" ocaml.version