summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/synchronizer/default.nix
blob: b3d813b2ebe3a73cb95620d49bab42124fddfe8a (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
32
33
34
35
36
37
{
  lib,
  fetchFromGitHub,
  buildDunePackage,
  prelude,
  alcotest,
}:

buildDunePackage (finalAttrs: {
  pname = "synchronizer";
  version = "0.3";

  minimalOCamlVersion = "5.2";

  src = fetchFromGitHub {
    owner = "OCamlPro";
    repo = "synchronizer";
    tag = finalAttrs.version;
    hash = "sha256-zomP15CRV6pFK3yk9hMCSDHPk11hEqXiRw8vr2Dg0CI=";
  };

  propagatedBuildInputs = [
    prelude
  ];

  checkInputs = [
    alcotest
  ];

  meta = {
    homepage = "https://github.com/OCamlPro/synchronizer";
    description = "Synchronizer to make datastructures thread-safe";
    changelog = "https://raw.githubusercontent.com/OCamlPro/synchronizer/${finalAttrs.src.rev}/CHANGES.md";
    license = lib.licenses.agpl3Plus;
    maintainers = with lib.maintainers; [ redianthus ];
  };
})