From cba62cad7047d596b06551eca31feff4d44a892b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 24 Jul 2023 07:14:44 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.rfc7748:=20fix=20for=20OCaml=20?= =?UTF-8?q?=E2=89=A5=205.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/rfc7748/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/ocaml-modules/rfc7748/default.nix b/pkgs/development/ocaml-modules/rfc7748/default.nix index b15ad8684eab..0cc59fa3e7c5 100644 --- a/pkgs/development/ocaml-modules/rfc7748/default.nix +++ b/pkgs/development/ocaml-modules/rfc7748/default.nix @@ -1,6 +1,7 @@ { lib , buildDunePackage , fetchFromGitHub +, fetchpatch , ocaml , ounit @@ -18,6 +19,12 @@ buildDunePackage rec { sha256 = "sha256-mgZooyfxrKBVQFn01B8PULmFUW9Zq5HJfgHCSJSkJo4="; }; + # Compatibility with OCaml 5.0 + patches = fetchpatch { + url = "https://github.com/burgerdev/ocaml-rfc7748/commit/f66257bae0317c7b24c4b208ee27ab6eb68460e4.patch"; + hash = "sha256-780yy8gLOwwf7xIKIIIaoGpDPcY7+dZ0jPS4nrkH2s8="; + }; + minimalOCamlVersion = "4.05"; propagatedBuildInputs = [ zarith ];