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

30 lines
704 B
Nix
Raw Normal View History

{stdenv, fetchFromGitHub, buildOcaml, opaline,
cppo, ounit, ppx_deriving}:
2016-11-03 09:34:36 -07:00
buildOcaml rec {
name = "ppx_import";
2017-11-26 12:08:53 -08:00
version = "1.4";
2016-11-03 09:34:36 -07:00
minimumSupportedOcamlVersion = "4.02";
src = fetchFromGitHub {
2017-11-26 12:08:53 -08:00
owner = "ocaml-ppx";
2016-11-03 09:34:36 -07:00
repo = "ppx_import";
rev = "v${version}";
2017-11-26 12:08:53 -08:00
sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk";
2016-11-03 09:34:36 -07:00
};
2018-05-27 23:50:17 -07:00
buildInputs = [ cppo ounit ppx_deriving opaline ];
2016-11-03 09:34:36 -07:00
doCheck = true;
checkTarget = "test";
2018-05-27 23:50:17 -07:00
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
2016-11-03 09:34:36 -07:00
meta = with stdenv.lib; {
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
license = licenses.mit;
};
2017-11-26 12:08:53 -08:00
}