2021-01-04 08:43:44 +01:00
|
|
|
{ fetchzip, buildDunePackage, lwt, ppxlib }:
|
2018-03-27 22:34:08 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "lwt_ppx";
|
2021-01-04 08:43:44 +01:00
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
2020-01-07 07:27:52 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
# `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.
|
2021-01-04 08:43:44 +01:00
|
|
|
url = "https://github.com/ocsigen/lwt/archive/5.4.0.tar.gz";
|
|
|
|
sha256 = "1ay1zgadnw19r9hl2awfjr22n37l7rzxd9v73pjbahavwm2ay65d";
|
2020-01-07 07:27:52 +01:00
|
|
|
};
|
2018-03-27 22:34:08 +02:00
|
|
|
|
2021-01-04 08:43:44 +01:00
|
|
|
propagatedBuildInputs = [ lwt ppxlib ];
|
2018-03-27 22:34:08 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ppx syntax extension for Lwt";
|
2018-11-05 11:21:46 +01:00
|
|
|
inherit (lwt.meta) license homepage maintainers;
|
2018-03-27 22:34:08 +02:00
|
|
|
};
|
|
|
|
}
|