about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-07-24 07:14:44 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2023-07-31 06:27:24 +0200
commitcba62cad7047d596b06551eca31feff4d44a892b (patch)
tree53a3a36e3f77708e7f55edebcea72de94d36fd15
parent59d07d970b9cf173efe46584f1ed8e8090adba5a (diff)
ocamlPackages.rfc7748: fix for OCaml ≥ 5.0
-rw-r--r--pkgs/development/ocaml-modules/rfc7748/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/rfc7748/default.nix b/pkgs/development/ocaml-modules/rfc7748/default.nix
index b15ad8684eab9..0cc59fa3e7c56 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 ];