From 36820f5d58a84cd5f83b46e5da5c548360d1bcbf Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 23 Aug 2024 13:00:59 +0200 Subject: [PATCH] ocamlPackages.multicore-bench: init at 0.1.4 --- .../ocaml-modules/multicore-bench/default.nix | 22 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/ocaml-modules/multicore-bench/default.nix diff --git a/pkgs/development/ocaml-modules/multicore-bench/default.nix b/pkgs/development/ocaml-modules/multicore-bench/default.nix new file mode 100644 index 000000000000..5e1d2275e5b6 --- /dev/null +++ b/pkgs/development/ocaml-modules/multicore-bench/default.nix @@ -0,0 +1,22 @@ +{ lib, buildDunePackage, fetchurl +, domain-local-await, mtime, multicore-magic, yojson +}: + +buildDunePackage rec { + pname = "multicore-bench"; + version = "0.1.4"; + + src = fetchurl { + url = "https://github.com/ocaml-multicore/multicore-bench/releases/download/${version}/multicore-bench-${version}.tbz"; + hash = "sha256-iCx5QvhYo/e53cW23Sza2as4aez4HeESVvLPF1DW85A="; + }; + + propagatedBuildInputs = [ domain-local-await mtime multicore-magic yojson ]; + + meta = { + description = "Framework for writing multicore benchmark executables to run on current-bench"; + homepage = "https://github.com/ocaml-multicore/multicore-bench"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index d7509a7efa9f..c487541fa2e8 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1201,6 +1201,8 @@ let mtime = callPackage ../development/ocaml-modules/mtime { }; + multicore-bench = callPackage ../development/ocaml-modules/multicore-bench { }; + multicore-magic = callPackage ../development/ocaml-modules/multicore-magic { }; multipart-form-data = callPackage ../development/ocaml-modules/multipart-form-data { };