From 1dcba47ef55717529748876b9eef5b8a9a341c50 Mon Sep 17 00:00:00 2001 From: Mutsuha Asada Date: Mon, 9 Jun 2025 08:14:10 +0900 Subject: [PATCH] ocamlPackages.kcas: 0.6.1 -> 0.7.0 Diff: https://github.com/ocaml-multicore/kcas/compare/0.6.1...0.7.0 Changelog: https://github.com/ocaml-multicore/kcas/releases/tag/0.7.0 ocamlPackages.kcas: add meta.longDescription and meta.changelog --- .../ocaml-modules/kcas/default.nix | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/kcas/default.nix b/pkgs/development/ocaml-modules/kcas/default.nix index 7f7a12258baf..f1945790168c 100644 --- a/pkgs/development/ocaml-modules/kcas/default.nix +++ b/pkgs/development/ocaml-modules/kcas/default.nix @@ -5,28 +5,45 @@ domain-local-await, domain-local-timeout, alcotest, + multicore-magic, + backoff, + domain_shims, + mdx, }: buildDunePackage rec { pname = "kcas"; - version = "0.6.1"; + version = "0.7.0"; + + minimalOCamlVersion = "4.13.0"; src = fetchurl { url = "https://github.com/ocaml-multicore/kcas/releases/download/${version}/kcas-${version}.tbz"; - hash = "sha256-u3Z8uAvITRUhOcB2EUYjWtpxIFJMvm2O/kyNr/AELWI="; + hash = "sha256-mo/otnkB79QdyVgLw1sZFfkR/Z/l15cRVfEYPPd6H5E="; }; propagatedBuildInputs = [ domain-local-await domain-local-timeout + multicore-magic + backoff ]; doCheck = true; - checkInputs = [ alcotest ]; + nativeCheckInputs = [ mdx.bin ]; + checkInputs = [ + alcotest + domain_shims + mdx + ]; meta = { homepage = "https://github.com/ocaml-multicore/kcas"; description = "STM based on lock-free MCAS"; + longDescription = '' + A software transactional memory (STM) implementation based on an atomic lock-free multi-word compare-and-set (MCAS) algorithm enhanced with read-only compare operations and ability to block awaiting for changes. + ''; + changelog = "https://raw.githubusercontent.com/ocaml-multicore/kcas/refs/tags/${version}/CHANGES.md"; license = lib.licenses.isc; maintainers = [ lib.maintainers.vbgl ]; };