ocamlPackage.{cohttp,github-unix}: fix for OCaml 5.0 (#237686)

* ocamlPackages.cohttp: fix for OCaml 5.0

* ocamlPackages.github-unix: fix for OCaml 5.0

Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
This commit is contained in:
Vincent Laporte 2023-06-15 13:21:03 +02:00 committed by GitHub
parent 0a2f30a645
commit 683f2f5ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -9,13 +9,16 @@ buildDunePackage rec {
version = "5.1.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz";
sha256 = "sha256-mINgeBO7DSsWd84gYjQNUQFqbh8KBZ+S2bYI/iVWMAc=";
hash = "sha256-mINgeBO7DSsWd84gYjQNUQFqbh8KBZ+S2bYI/iVWMAc=";
};
postPatch = ''
substituteInPlace cohttp/src/dune --replace 'bytes base64' 'base64'
'';
buildInputs = [ jsonm ppx_sexp_conv ];
propagatedBuildInputs = [ base64 re stringext uri-sexp ];

View File

@ -6,7 +6,9 @@ buildDunePackage {
pname = "github-unix";
inherit (github) version src;
duneVersion = "3";
postPatch = ''
substituteInPlace unix/dune --replace 'github bytes' 'github'
'';
propagatedBuildInputs = [
github