From e27fad0a4e1a7c6ee2c64fd8c1a60fa68b145b72 Mon Sep 17 00:00:00 2001 From: redianthus Date: Fri, 30 Jan 2026 23:55:17 +0100 Subject: [PATCH] domainpc: init at 0.2 --- .../ocaml-modules/domainpc/default.nix | 31 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/ocaml-modules/domainpc/default.nix diff --git a/pkgs/development/ocaml-modules/domainpc/default.nix b/pkgs/development/ocaml-modules/domainpc/default.nix new file mode 100644 index 000000000000..336f7c9c0730 --- /dev/null +++ b/pkgs/development/ocaml-modules/domainpc/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, + processor, +}: + +buildDunePackage (finalAttrs: { + pname = "domainpc"; + version = "0.2"; + + minimalOCamlVersion = "5.1"; + + src = fetchFromGitHub { + owner = "ocamlpro"; + repo = "domainpc"; + tag = finalAttrs.version; + hash = "sha256-VyCbxVikV0+YZzgC/8i4RLxVWN3TMS6n0qR72SmVwI8="; + }; + + propagatedBuildInputs = [ + processor + ]; + + meta = { + description = "Domain Per Core, spawn domains ensuring that they run on separate cores"; + homepage = "https://github.com/ocamlpro/domainpc"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ redianthus ]; + }; +}) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c988bf11ada0..0247134879da 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -456,6 +456,8 @@ let domain_shims = callPackage ../development/ocaml-modules/domain_shims { }; + domainpc = callPackage ../development/ocaml-modules/domainpc { }; + domainslib = callPackage ../development/ocaml-modules/domainslib { }; dose3 = callPackage ../development/ocaml-modules/dose3 { };