diff --git a/pkgs/development/ocaml-modules/ppx_show/default.nix b/pkgs/development/ocaml-modules/ppx_show/default.nix new file mode 100644 index 000000000000..6d33e0f0c163 --- /dev/null +++ b/pkgs/development/ocaml-modules/ppx_show/default.nix @@ -0,0 +1,27 @@ +{ lib, buildDunePackage, fetchFromGitHub +, stdcompat, ppxlib +}: + +buildDunePackage rec { + pname = "ppx_show"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "thierry-martinez"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-YwWAdOtb0zg2hqNkGRiigz/Pci8Jy/QD+WyUEohEsns="; + }; + + buildInputs = [ + stdcompat + ppxlib + ]; + + meta = with lib; { + homepage = "https://github.com/thierry-martinez/${pname}"; + description = "OCaml PPX deriver for deriving show based on ppxlib"; + license = licenses.bsd2; + maintainers = with maintainers; [ niols ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index d9ff56ca05aa..154230659901 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1375,6 +1375,8 @@ let ppx_repr = callPackage ../development/ocaml-modules/repr/ppx.nix { }; + ppx_show = callPackage ../development/ocaml-modules/ppx_show { }; + ppx_tools = if lib.versionAtLeast ocaml.version "4.02" then callPackage ../development/ocaml-modules/ppx_tools {}