diff --git a/pkgs/development/ocaml-modules/multicore-magic/default.nix b/pkgs/development/ocaml-modules/multicore-magic/default.nix new file mode 100644 index 000000000000..3082eece19cf --- /dev/null +++ b/pkgs/development/ocaml-modules/multicore-magic/default.nix @@ -0,0 +1,24 @@ +{ lib, buildDunePackage, fetchurl +, alcotest, domain_shims +}: + +buildDunePackage rec { + pname = "multicore-magic"; + version = "2.3.0"; + + src = fetchurl { + url = "https://github.com/ocaml-multicore/multicore-magic/releases/download/${version}/multicore-magic-${version}.tbz"; + hash = "sha256-r50UqLOd2DoTz0CEXHpJMHX0fty+mGiAKTdtykgnzu4="; + }; + + doCheck = true; + + checkInputs = [ alcotest domain_shims ]; + + meta = { + description = "Low-level multicore utilities for OCaml"; + license = lib.licenses.isc; + homepage = "https://github.com/ocaml-multicore/multicore-magic"; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 8fb8986dd9b0..d550e02e42df 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1199,6 +1199,8 @@ let mtime = callPackage ../development/ocaml-modules/mtime { }; + multicore-magic = callPackage ../development/ocaml-modules/multicore-magic { }; + multipart-form-data = callPackage ../development/ocaml-modules/multipart-form-data { }; mustache = callPackage ../development/ocaml-modules/mustache { };