ocamlPackages.lwt: fix for OCaml >= 5
This commit is contained in:
parent
969ef58f76
commit
685b423e45
|
@ -1,5 +1,5 @@
|
||||||
{ lib, fetchFromGitHub, libev, buildDunePackage
|
{ lib, fetchFromGitHub, libev, buildDunePackage
|
||||||
, cppo, dune-configurator, ocplib-endian
|
, ocaml, cppo, dune-configurator, ocplib-endian
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
|
@ -15,6 +15,11 @@ buildDunePackage rec {
|
||||||
sha256 = "sha256-XstKs0tMwliCyXnP0Vzi5WC27HKJGnATUYtbbQmH1TE=";
|
sha256 = "sha256-XstKs0tMwliCyXnP0Vzi5WC27HKJGnATUYtbbQmH1TE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") ''
|
||||||
|
substituteInPlace src/unix/dune \
|
||||||
|
--replace "libraries bigarray lwt" "libraries lwt"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cppo ];
|
nativeBuildInputs = [ cppo ];
|
||||||
buildInputs = [ dune-configurator ];
|
buildInputs = [ dune-configurator ];
|
||||||
propagatedBuildInputs = [ libev ocplib-endian ];
|
propagatedBuildInputs = [ libev ocplib-endian ];
|
||||||
|
|
Loading…
Reference in a new issue