diff options
-rw-r--r-- | pkgs/development/ocaml-modules/faraday/async.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/faraday/async.nix b/pkgs/development/ocaml-modules/faraday/async.nix index 05b085f92aca6..9e4a9b24cea9b 100644 --- a/pkgs/development/ocaml-modules/faraday/async.nix +++ b/pkgs/development/ocaml-modules/faraday/async.nix @@ -1,15 +1,15 @@ -{ buildDunePackage, fetchpatch, faraday, core, async }: +{ buildDunePackage, lib, fetchpatch, faraday, core, async }: buildDunePackage rec { pname = "faraday-async"; - inherit (faraday) version src useDune2; + inherit (faraday) version src; - patches = fetchpatch { + patches = lib.optional (lib.versionAtLeast async.version "0.15") (fetchpatch { url = "https://github.com/inhabitedtype/faraday/commit/31c3fc7f91ecca0f1deea10b40fd5e33bcd35f75.patch"; sha256 = "05z5gk7hxq7qvwg6f73hdhfcnx19p1dq6wqh8prx667y8zsaq2zj"; - }; + }); - minimumOCamlVersion = "4.08"; + minimalOCamlVersion = "4.08"; propagatedBuildInputs = [ faraday core async ]; |