ocamlPackages.ppx_show: init at 0.2.1

This commit is contained in:
Niols 2023-06-06 14:21:22 +02:00 committed by Vincent Laporte
parent 1d28d7840e
commit 9aae03dd45
2 changed files with 29 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 {}