nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchFromGitHub, buildDunePackage, lwt, ppxlib }:
2
3buildDunePackage {
4 pname = "lwt_ppx";
5 version = "2.1.0";
6 duneVersion = "3";
7
8 minimalOCamlVersion = "4.04";
9
10 # `lwt_ppx` has a different release cycle than Lwt, but it's included in
11 # one of its release bundles.
12 # Because there could exist an Lwt release _without_ a `lwt_ppx` release,
13 # this `src` field doesn't inherit from the Lwt derivation.
14 #
15 # This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
16 # as new Lwt releases may contain broken `lwt_ppx` code.
17 src = fetchFromGitHub {
18 owner = "ocsigen";
19 repo = "lwt";
20 rev = "5.6.0";
21 hash = "sha256-DLQupCkZ14kOuSQatbb7j07I+jvvDCKpdlaR3rijT4s=";
22 };
23
24 propagatedBuildInputs = [ lwt ppxlib ];
25
26 meta = {
27 description = "Ppx syntax extension for Lwt";
28 inherit (lwt.meta) license homepage maintainers;
29 };
30}