diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-11-09 17:43:15 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-11-16 11:53:48 +0100 |
commit | f27f14bd7a42e6e38ca14a81be52094d8cf23c6d (patch) | |
tree | 3dd8eccf0d918ee363f6c7ecc2153404f917eb34 | |
parent | 6abc7cd907ea06424e7963e949cf554a6b3914c2 (diff) |
ocamlPackages.ppx_python: init at 0.14.0
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/0.14.nix | 13 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/0.14.nix b/pkgs/development/ocaml-modules/janestreet/0.14.nix index 116349746bf3a..2e5a54ccad603 100644 --- a/pkgs/development/ocaml-modules/janestreet/0.14.nix +++ b/pkgs/development/ocaml-modules/janestreet/0.14.nix @@ -1,4 +1,5 @@ { self +, fetchpatch , lib , openssl , zstd @@ -578,6 +579,18 @@ with self; propagatedBuildInputs = [ ppxlib ]; }; + ppx_python = janePackage { + pname = "ppx_python"; + hash = "0gk4nqz4i9v3hwjg5mvgpgwj0dfcgpyc7ikba93cafyhn6fy83zk"; + meta.description = "A [@@deriving] plugin to generate Python conversion functions "; + # Compatibility with ppxlib 0.23 + patches = fetchpatch { + url = "https://github.com/janestreet/ppx_python/commit/b2fe0040cc39fa6164de868f8a20edb38d81170e.patch"; + sha256 = "sha256:1mrdwp0zw3dqavzx3ffrmzq5cdlninyf67ksavfzxb8gb16w6zpz"; + }; + propagatedBuildInputs = [ ppx_base ppxlib pyml ]; + }; + ppx_sexp_conv = janePackage { pname = "ppx_sexp_conv"; version = "0.14.3"; diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 74691f1df2d2e..b2d2d2415e245 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1459,7 +1459,7 @@ let if lib.versionOlder "4.08" ocaml.version then import ../development/ocaml-modules/janestreet/0.14.nix { inherit self; - inherit (pkgs) lib openssl zstd; + inherit (pkgs) fetchpatch lib openssl zstd; } else if lib.versionOlder "4.07" ocaml.version then import ../development/ocaml-modules/janestreet/0.12.nix { |