depot/third_party/nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

31 lines
879 B
Nix

{ fetchFromGitHub, buildDunePackage, lwt, ppxlib }:
buildDunePackage {
pname = "lwt_ppx";
version = "2.0.2";
useDune2 = true;
minimumOCamlVersion = "4.04";
# `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";
rev = "5.4.0";
sha256 = "sha256-rRivROVbQbXkHWen1n8+9AwrRJaOK0Fhyilw29T7was=";
};
propagatedBuildInputs = [ lwt ppxlib ];
meta = {
description = "Ppx syntax extension for Lwt";
inherit (lwt.meta) license homepage maintainers;
};
}