diff --git a/pkgs/development/ocaml-modules/lun/ppx.nix b/pkgs/development/ocaml-modules/lun/ppx.nix new file mode 100644 index 000000000000..fc138f1a6f8a --- /dev/null +++ b/pkgs/development/ocaml-modules/lun/ppx.nix @@ -0,0 +1,17 @@ +{ lib, buildDunePackage, fetchurl, fmt, lun, ppxlib }: + +buildDunePackage { + pname = "ppx_lun"; + inherit (lun) version src; + + propagatedBuildInputs = [ lun ppxlib ]; + + checkInputs = [ fmt ]; + + doCheck = true; + + meta = lun.meta // { + description = "Optics with lun package and PPX"; + license = lib.licenses.mit; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 051676955485..fb9aa161a3e2 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1488,6 +1488,8 @@ let ppx_irmin = callPackage ../development/ocaml-modules/irmin/ppx.nix { }; + ppx_lun = callPackage ../development/ocaml-modules/lun/ppx.nix { }; + ppx_monad = callPackage ../development/ocaml-modules/ppx_monad { }; ppx_repr = callPackage ../development/ocaml-modules/repr/ppx.nix { };