From b6534c694d3849649388df7bb6fb0a7dab9d96e1 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Mon, 22 May 2017 09:48:29 -0500 Subject: [PATCH] ocamlPackages.core_bench: init at 113.33.03 --- .../ocaml-modules/janestreet/core_bench.nix | 20 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/janestreet/core_bench.nix diff --git a/pkgs/development/ocaml-modules/janestreet/core_bench.nix b/pkgs/development/ocaml-modules/janestreet/core_bench.nix new file mode 100644 index 000000000000..83e6100f0597 --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/core_bench.nix @@ -0,0 +1,20 @@ +{ stdenv +, buildOcamlJane +, core +, core_extended +, textutils +}: + +buildOcamlJane rec { + name = "core_bench"; + hash = "1d1ainpakgsf5rg8dvar12ksgilqcc4465jr8gf7fz5mmn0mlifj"; + propagatedBuildInputs = + [ core core_extended textutils ]; + + meta = with stdenv.lib; { + homepage = https://github.com/janestreet/core_bench; + description = "Micro-benchmarking library for OCaml"; + license = licenses.asl20; + maintainers = [ maintainers.pmahoney ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 3a185bc0a10b..13ece3dec43f 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -728,6 +728,9 @@ let then callPackage ../development/ocaml-modules/janestreet/bin_prot.nix {} else bin_prot_p4; + core_bench = + callPackage ../development/ocaml-modules/janestreet/core_bench.nix {}; + core_kernel = if lib.versionOlder "4.03" ocaml.version then callPackage ../development/ocaml-modules/janestreet/core_kernel-113_33_01.nix {}