summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/domainpc/default.nix
blob: 336f7c9c07307a1a3e9726c5964afbc1d408f356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 ];
  };
})