Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / lwt / ppx.nix
blob2df17844d1a06e652d6e796e7e492ce61076593e
1 { fetchzip, buildDunePackage, lwt, ppxlib }:
3 buildDunePackage {
4   pname = "lwt_ppx";
5   version = "2.0.2";
7   useDune2 = true;
9   minimumOCamlVersion = "4.04";
11   src = fetchzip {
12     # `lwt_ppx` has a different release cycle than Lwt, but it's included in
13     # one of its release bundles.
14     # Because there could exist an Lwt release _without_ a `lwt_ppx` release,
15     # this `src` field doesn't inherit from the Lwt derivation.
16     #
17     # This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
18     # as new Lwt releases may contain broken `lwt_ppx` code.
19     url = "https://github.com/ocsigen/lwt/archive/5.4.0.tar.gz";
20     sha256 = "1ay1zgadnw19r9hl2awfjr22n37l7rzxd9v73pjbahavwm2ay65d";
21   };
23   propagatedBuildInputs = [ lwt ppxlib ];
25   meta = {
26     description = "Ppx syntax extension for Lwt";
27     inherit (lwt.meta) license homepage maintainers;
28   };