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:
parent
0a2f30a645
commit
683f2f5ba2
|
@ -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 ];
|
||||
|
|
|
@ -6,7 +6,9 @@ buildDunePackage {
|
|||
pname = "github-unix";
|
||||
inherit (github) version src;
|
||||
|
||||
duneVersion = "3";
|
||||
postPatch = ''
|
||||
substituteInPlace unix/dune --replace 'github bytes' 'github'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
github
|
||||
|
|
Loading…
Reference in a new issue