diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-19 15:44:46 +0300 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-04-19 21:52:23 +0200 |
commit | 685b423e45a7fa6500d53681e279ad9964977717 (patch) | |
tree | af5865c1627e91b3e799025ba503b32a84c9bcdc | |
parent | 969ef58f76083c92fec5c293440e055eff45d138 (diff) | |
download | nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar.gz nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar.bz2 nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar.lz nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar.xz nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.tar.zst nixpkgs-685b423e45a7fa6500d53681e279ad9964977717.zip |
ocamlPackages.lwt: fix for OCaml >= 5
-rw-r--r-- | pkgs/development/ocaml-modules/lwt/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index 8004cfcd4bb..cf631fd08e4 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -1,5 +1,5 @@ { lib, fetchFromGitHub, libev, buildDunePackage -, cppo, dune-configurator, ocplib-endian +, ocaml, cppo, dune-configurator, ocplib-endian }: buildDunePackage rec { @@ -15,6 +15,11 @@ buildDunePackage rec { sha256 = "sha256-XstKs0tMwliCyXnP0Vzi5WC27HKJGnATUYtbbQmH1TE="; }; + postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") '' + substituteInPlace src/unix/dune \ + --replace "libraries bigarray lwt" "libraries lwt" + ''; + nativeBuildInputs = [ cppo ]; buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ libev ocplib-endian ]; |