diff --git a/pkgs/development/ocaml-modules/ppx_tools/default.nix b/pkgs/development/ocaml-modules/ppx_tools/default.nix new file mode 100644 index 00000000000..4e99dcd1af4 --- /dev/null +++ b/pkgs/development/ocaml-modules/ppx_tools/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchzip, ocaml, findlib }: + +stdenv.mkDerivation { + name = "ocaml-ppx_tools-0.99.2"; + src = fetchzip { + url = https://github.com/alainfrisch/ppx_tools/archive/ppx_tools_0.99.2.tar.gz; + sha256 = "1m09r2sjcb37i4dyhpbk9n2wxkcvpib6bvairsird91fm9w0vqw7"; + }; + + buildInputs = [ ocaml findlib ]; + + createFindlibDestdir = true; + + meta = with stdenv.lib; { + description = "Tools for authors of ppx rewriters"; + homepage = http://www.lexifi.com/ppx_tools; + license = licenses.mit; + platforms = ocaml.meta.platforms; + maintainers = with maintainers; [ vbgl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fc78dac5ee7..b3c501e1c54 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4624,6 +4624,11 @@ let pprint = callPackage ../development/ocaml-modules/pprint { }; + ppx_tools = + if lib.versionAtLeast ocaml_version "4.02" + then callPackage ../development/ocaml-modules/ppx_tools {} + else null; + pycaml = callPackage ../development/ocaml-modules/pycaml { }; qcheck = callPackage ../development/ocaml-modules/qcheck {