Skip to content

Commit

Permalink
ocamlPackages.lockfree: 0.4.0 → 0.5.0
Browse files Browse the repository at this point in the history
ocamlPackages.domainslib: mark as broken
  • Loading branch information
vbgl committed Aug 30, 2024
1 parent 43b6851 commit b956c2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions pkgs/development/ocaml-modules/domainslib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ buildDunePackage rec {
description = "Nested-parallel programming";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
broken = true; # Not compatible with saturn > 0.4.0
};
}
11 changes: 10 additions & 1 deletion pkgs/development/ocaml-modules/saturn/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ lib, buildDunePackage, ocaml
, saturn_lockfree
, domain_shims
, dscheck
, multicore-bench
, qcheck, qcheck-alcotest, qcheck-stm
}:

Expand All @@ -12,7 +14,14 @@ buildDunePackage rec {
propagatedBuildInputs = [ saturn_lockfree ];

doCheck = lib.versionAtLeast ocaml.version "5.0";
checkInputs = [ dscheck qcheck qcheck-alcotest qcheck-stm ];
checkInputs = [
domain_shims
dscheck
multicore-bench
qcheck
qcheck-alcotest
qcheck-stm
];

meta = saturn_lockfree.meta // {
description = "Parallelism-safe data structures for multicore OCaml";
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/ocaml-modules/saturn/lockfree.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{ lib, fetchurl, buildDunePackage
, domain_shims
, backoff, multicore-magic
}:

buildDunePackage rec {
pname = "saturn_lockfree";
version = "0.4.0";
version = "0.5.0";

minimalOCamlVersion = "4.12";
minimalOCamlVersion = "4.13";

src = fetchurl {
url = "https://github.com/ocaml-multicore/saturn/releases/download/${version}/saturn-${version}.tbz";
hash = "sha256-fHvslaJwVbQaqDVA/MHGqHybetYbxRGlMrhgXqM3iPs=";
hash = "sha256-ZmmxwIe5PiPYTTdvOHbOjRbv2b/bb9y0IekByfREPjk=";
};

propagatedBuildInputs = [ domain_shims ];
propagatedBuildInputs = [ backoff multicore-magic ];

meta = {
description = "Lock-free data structures for multicore OCaml";
Expand Down

0 comments on commit b956c2f

Please sign in to comment.