at 18.09-beta 29 lines 704 B view raw
1{stdenv, fetchFromGitHub, buildOcaml, opaline, 2 cppo, ounit, ppx_deriving}: 3 4buildOcaml rec { 5 name = "ppx_import"; 6 7 version = "1.4"; 8 9 minimumSupportedOcamlVersion = "4.02"; 10 11 src = fetchFromGitHub { 12 owner = "ocaml-ppx"; 13 repo = "ppx_import"; 14 rev = "v${version}"; 15 sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk"; 16 }; 17 18 buildInputs = [ cppo ounit ppx_deriving opaline ]; 19 20 doCheck = true; 21 checkTarget = "test"; 22 23 installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR"; 24 25 meta = with stdenv.lib; { 26 description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; 27 license = licenses.mit; 28 }; 29}