From d7f08cd90ff3b2e992a18d32a42bf431085868c3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 17 Dec 2018 21:39:33 +0000 Subject: [PATCH] ocamlPackages.ppxfind: init at 1.2 --- .../ocaml-modules/ppxfind/default.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ppxfind/default.nix diff --git a/pkgs/development/ocaml-modules/ppxfind/default.nix b/pkgs/development/ocaml-modules/ppxfind/default.nix new file mode 100644 index 000000000000..ebb592dddd29 --- /dev/null +++ b/pkgs/development/ocaml-modules/ppxfind/default.nix @@ -0,0 +1,21 @@ +{ lib, buildDunePackage, fetchurl, ocaml-migrate-parsetree }: + +buildDunePackage rec { + pname = "ppxfind"; + version = "1.2"; + src = fetchurl { + url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz"; + sha256 = "1687jbgii5w5dvvid3ri2cx006ysv0rrspn8dz8x7ma8615whz2h"; + }; + + minimumOCamlVersion = "4.03"; + + buildInputs = [ ocaml-migrate-parsetree ]; + + meta = { + homepage = "https://github.com/diml/ppxfind"; + description = "ocamlfind ppx tool"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index ba583418163a..c670db817728 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -580,6 +580,8 @@ let piqi = callPackage ../development/ocaml-modules/piqi { }; piqi-ocaml = callPackage ../development/ocaml-modules/piqi-ocaml { }; + ppxfind = callPackage ../development/ocaml-modules/ppxfind { }; + ppxlib = callPackage ../development/ocaml-modules/ppxlib { }; psmt2-frontend = callPackage ../development/ocaml-modules/psmt2-frontend { };