about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/domainslib/default.nix
blob: 8a36285fe697a7305ffa8415693f65bd3c97c70f (plain) (blame)
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
, fetchurl
, buildDunePackage
, lockfree
, mirage-clock-unix
}:

buildDunePackage rec {
  pname = "domainslib";
  version = "0.5.0";

  duneVersion = "3";
  minimalOCamlVersion = "5.0";

  src = fetchurl {
    url = "https://github.com/ocaml-multicore/domainslib/releases/download/v${version}/domainslib-${version}.tbz";
    hash = "sha256-rty+9DUhTUEcN7BPl8G6Q/G/MJ6z/UAn0RPkG8hACwA=";
  };

  propagatedBuildInputs = [ lockfree ];

  doCheck = true;
  checkInputs = [ mirage-clock-unix ];

  meta = {
    homepage = "https://github.com/ocaml-multicore/domainslib";
    description = "Nested-parallel programming";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };
}