2022-01-13 20:06:32 +00:00
|
|
|
{ fetchFromGitHub, buildDunePackage, lwt, ppxlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "lwt_ppx";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
duneVersion = "3";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
# `lwt_ppx` has a different release cycle than Lwt, but it's included in
|
|
|
|
# one of its release bundles.
|
|
|
|
# Because there could exist an Lwt release _without_ a `lwt_ppx` release,
|
|
|
|
# this `src` field doesn't inherit from the Lwt derivation.
|
|
|
|
#
|
|
|
|
# This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
|
|
|
|
# as new Lwt releases may contain broken `lwt_ppx` code.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "lwt";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "5.6.0";
|
|
|
|
hash = "sha256-DLQupCkZ14kOuSQatbb7j07I+jvvDCKpdlaR3rijT4s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs = [ lwt ppxlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ppx syntax extension for Lwt";
|
|
|
|
inherit (lwt.meta) license homepage maintainers;
|
|
|
|
};
|
|
|
|
}
|