2022-08-12 12:06:08 +00:00
|
|
|
{ buildDunePackage, lib, fetchpatch, faraday, core, async }:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "faraday-async";
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit (faraday) version src;
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = lib.optional (lib.versionAtLeast async.version "0.15") (fetchpatch {
|
2022-07-18 16:21:45 +00:00
|
|
|
url = "https://github.com/inhabitedtype/faraday/commit/31c3fc7f91ecca0f1deea10b40fd5e33bcd35f75.patch";
|
|
|
|
sha256 = "05z5gk7hxq7qvwg6f73hdhfcnx19p1dq6wqh8prx667y8zsaq2zj";
|
2022-08-12 12:06:08 +00:00
|
|
|
});
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ faraday core async ];
|
|
|
|
|
|
|
|
meta = faraday.meta // {
|
|
|
|
description = "Async support for Faraday";
|
|
|
|
};
|
|
|
|
}
|