From f2c822b65f4e8554a7ae7c55f910e3833307dbef Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 28 Aug 2025 08:27:10 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.lwt:=205.9.1=20=E2=86=92=205.9.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/lwt/default.nix | 15 +++++++++++---- pkgs/development/ocaml-modules/lwt/ppx.nix | 6 ------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index 20e3e146d68d..b30ce1352313 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -6,19 +6,26 @@ cppo, dune-configurator, ocplib-endian, + ppxlib, + version ? if lib.versionAtLeast ppxlib.version "0.36" then "5.9.2" else "5.9.1", }: -buildDunePackage rec { +buildDunePackage { pname = "lwt"; - version = "5.9.1"; + inherit version; minimalOCamlVersion = "4.08"; src = fetchFromGitHub { owner = "ocsigen"; repo = "lwt"; - rev = version; - hash = "sha256-oPYLFugMTI3a+hmnwgUcoMgn5l88NP1Roq0agLhH/vI="; + tag = version; + hash = + { + "5.9.1" = "sha256-oPYLFugMTI3a+hmnwgUcoMgn5l88NP1Roq0agLhH/vI="; + "5.9.2" = "sha256-pzowRN1wwaF2iMfMPE7RCtA2XjlaXC3xD0yznriVfu8="; + } + ."${version}"; }; nativeBuildInputs = [ cppo ]; diff --git a/pkgs/development/ocaml-modules/lwt/ppx.nix b/pkgs/development/ocaml-modules/lwt/ppx.nix index 92e174efea4b..ee43b365ed38 100644 --- a/pkgs/development/ocaml-modules/lwt/ppx.nix +++ b/pkgs/development/ocaml-modules/lwt/ppx.nix @@ -1,7 +1,6 @@ { lib, fetchFromGitHub, - fetchpatch, buildDunePackage, lwt, ppxlib, @@ -11,11 +10,6 @@ buildDunePackage { pname = "lwt_ppx"; inherit (lwt) version src; - patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch { - url = "https://github.com/ocsigen/lwt/commit/96b7ac686208968503786bb6d101f4ee84c8d2e6.patch"; - hash = "sha256-uxTwNVqV0O11WEKy66fphvGqW17FWDEzEylhVYNwNnY="; - }); - propagatedBuildInputs = [ lwt ppxlib