ocamlPackages.lwt_eio: 0.5.1 → 0.6

This commit is contained in:
Vincent Laporte
2026-04-08 07:54:45 +02:00
parent d85d91e06c
commit 563249454d
@@ -2,35 +2,35 @@
lib,
buildDunePackage,
fetchurl,
fetchpatch,
eio,
lwt,
}:
buildDunePackage rec {
buildDunePackage (finalAttrs: {
pname = "lwt_eio";
version = "0.5.1";
version = if lib.versionAtLeast lwt.version "6.0.0" then "0.6" else "0.5.1";
minimalOCamlVersion = "5.1";
src = fetchurl {
url = "https://github.com/ocaml-multicore/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-dlJnhHh4VNO60NZJZqc1HS8wPR95WhdeBJTK37pPbCE=";
url = "https://github.com/ocaml-multicore/lwt_eio/releases/download/v${finalAttrs.version}/lwt_eio-${finalAttrs.version}.tbz";
hash =
{
"0.5.1" = "sha256-dlJnhHh4VNO60NZJZqc1HS8wPR95WhdeBJTK37pPbCE=";
"0.6" = "sha256-6xyIQyMRUE5Q+FQCzAkvaXZqqo8LSFzG6U1A7GZwSLw=";
}
."${finalAttrs.version}";
};
patches = lib.optional (lib.versionAtLeast lwt.version "6.0.0") (fetchpatch {
url = "https://github.com/ocaml-multicore/lwt_eio/commit/5f8bf1e7af33590683ee45151894d7b9a20607f0.patch";
hash = "sha256-5A3Bh+xOXo79Rw145hYqYv42li30M0TKLW+qu/dC0KQ=";
});
propagatedBuildInputs = [
eio
lwt
];
meta = {
homepage = "https://github.com/ocaml-multicore/${pname}";
changelog = "https://github.com/ocaml-multicore/${pname}/raw/v${version}/CHANGES.md";
homepage = "https://github.com/ocaml-multicore/lwt_eio";
changelog = "https://github.com/ocaml-multicore/lwt_eio/raw/v${finalAttrs.version}/CHANGES.md";
description = "Use Lwt libraries from within Eio";
license = with lib.licenses; [ isc ];
};
}
})