From 75b9ef08a341103d1f12e5c98b4ad9d31a4bb810 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 26 May 2023 08:38:15 +0200 Subject: ocamlPackages.ocplib-endian: fix for OCaml 5.0 (cherry picked from commit 67a752bf71dc9805a5ed5138fa63184873f20ffe) --- pkgs/development/ocaml-modules/ocplib-endian/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ocplib-endian/default.nix b/pkgs/development/ocaml-modules/ocplib-endian/default.nix index 285e8de84b397..c7fa14a291d71 100644 --- a/pkgs/development/ocaml-modules/ocplib-endian/default.nix +++ b/pkgs/development/ocaml-modules/ocplib-endian/default.nix @@ -13,7 +13,8 @@ buildDunePackage rec { postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") '' substituteInPlace src/dune \ - --replace "libraries ocplib_endian bigarray" "libraries ocplib_endian" + --replace "(libraries bytes)" "" \ + --replace "libraries ocplib_endian bigarray bytes" "libraries ocplib_endian" ''; minimalOCamlVersion = "4.03"; -- cgit 1.4.1 From 91f654d57cbd42ccf7f1038a43e2aa60d5e26133 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 26 May 2023 08:38:20 +0200 Subject: ocamlPackages.lwt: fix for OCaml 5.0 (cherry picked from commit ffcfca42e4f263af4e1281769f050e01b114fd79) --- pkgs/development/ocaml-modules/lwt/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index cf631fd08e415..4033336ae119b 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -16,6 +16,8 @@ buildDunePackage rec { }; postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") '' + substituteInPlace src/core/dune \ + --replace "(libraries bytes)" "" substituteInPlace src/unix/dune \ --replace "libraries bigarray lwt" "libraries lwt" ''; -- cgit 1.4.1 From 35a6f5fba6e7e6a239825bb95ba2e30a7cc098ca Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 26 May 2023 08:38:24 +0200 Subject: ocamlPackages.iter: 1.6 → 1.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 56376c4eee79d43725bccff13258aaefa0ac8199) --- pkgs/development/ocaml-modules/iter/default.nix | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix index 7d0f9366a554c..167f3739d2693 100644 --- a/pkgs/development/ocaml-modules/iter/default.nix +++ b/pkgs/development/ocaml-modules/iter/default.nix @@ -1,25 +1,19 @@ -{ lib, fetchFromGitHub, buildDunePackage, ocaml, dune-configurator -, result, seq +{ lib, fetchurl, buildDunePackage , mdx, ounit2, qcheck-core }: buildDunePackage rec { pname = "iter"; - version = "1.6"; + version = "1.7"; - duneVersion = "3"; + minimalOCamlVersion = "4.08"; - src = fetchFromGitHub { - owner = "c-cube"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-FbM/Vk/h4wkrBjyf9/QXTvTOA0nNqsdHP1mDnVkg1is="; + src = fetchurl { + url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz"; + hash = "sha256-vtcSnPMxpBwDve1zsR6cEnUsyu3JELPt2Kwu4OEEtzA="; }; - buildInputs = [ dune-configurator ]; - propagatedBuildInputs = [ result seq ]; - - doCheck = lib.versionAtLeast ocaml.version "4.08"; + doCheck = true; nativeCheckInputs = [ mdx.bin ]; checkInputs = [ ounit2 qcheck-core ]; -- cgit 1.4.1