nixpkgs/pkgs/development/ocaml-modules/ppx_import/default.nix

33 lines
816 B
Nix
Raw Normal View History

{ lib, fetchurl, buildDunePackage
, ppx_tools_versioned
, ocaml-migrate-parsetree
, ounit, ppx_deriving, ppxlib
2018-09-09 22:45:15 -07:00
}:
2016-11-03 09:34:36 -07:00
2018-12-05 01:31:47 -08:00
buildDunePackage rec {
pname = "ppx_import";
version = "1.8.0";
2016-11-03 09:34:36 -07:00
useDune2 = true;
minimumOCamlVersion = "4.04";
src = fetchurl {
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/v${version}/ppx_import-${version}.tbz";
sha256 = "0zqcj70yyp4ik4jc6jz3qs2xhb94vxc6yq9ij0d5cyak28klc3gv";
2016-11-03 09:34:36 -07:00
};
propagatedBuildInputs = [
ppx_tools_versioned ocaml-migrate-parsetree
];
2016-11-03 09:34:36 -07:00
doCheck = true;
checkInputs = [ ounit ppx_deriving ppxlib ];
2016-11-03 09:34:36 -07:00
2018-12-05 01:31:47 -08:00
meta = {
2016-11-03 09:34:36 -07:00
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
2018-12-05 01:31:47 -08:00
license = lib.licenses.mit;
homepage = "https://github.com/ocaml-ppx/ppx_import";
2016-11-03 09:34:36 -07:00
};
2017-11-26 12:08:53 -08:00
}