forked from mirrors/nixpkgs
ocamlPackages.ppx_import: use opaline
This commit is contained in:
parent
29a6ca660a
commit
8e0100ba85
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, fetchFromGitHub, buildOcaml, ocaml, opam,
|
{stdenv, fetchFromGitHub, buildOcaml, ocaml, opaline,
|
||||||
cppo, ppx_tools, ounit, ppx_deriving}:
|
cppo, ppx_tools, ounit, ppx_deriving}:
|
||||||
|
|
||||||
buildOcaml rec {
|
buildOcaml rec {
|
||||||
|
@ -15,15 +15,12 @@ buildOcaml rec {
|
||||||
sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk";
|
sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cppo ounit ppx_deriving opam ];
|
buildInputs = [ cppo ounit ppx_deriving opaline ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
||||||
opam-installer --script --prefix=$out ppx_import.install | sh
|
|
||||||
ln -s $out/lib/ppx_import $out/lib/ocaml/${ocaml.version}/site-lib
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
|
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
|
||||||
|
|
Loading…
Reference in a new issue