about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/kcas/default.nix
blob: 2d840b9a750bbc2fca1fefb69feb1cb9d0264643 (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
{ lib, buildDunePackage, fetchurl
, domain-local-await, domain-local-timeout
, alcotest
}:

buildDunePackage rec {
  pname = "kcas";
  version = "0.6.1";

  src = fetchurl {
    url = "https://github.com/ocaml-multicore/kcas/releases/download/${version}/kcas-${version}.tbz";
    hash = "sha256-u3Z8uAvITRUhOcB2EUYjWtpxIFJMvm2O/kyNr/AELWI=";
  };

  propagatedBuildInputs = [ domain-local-await domain-local-timeout ];

  doCheck = true;
  checkInputs = [ alcotest ];

  meta = {
    homepage = "https://github.com/ocaml-multicore/kcas";
    description = "STM based on lock-free MCAS";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };
}