ocamlPackages.ppx_import: 1.5 -> 1.5-3
This commit is contained in:
parent
47c4876de6
commit
ee843ee86e
@ -1,34 +1,31 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
||||||
, cppo, ounit, ppx_deriving
|
, ounit, ppx_deriving, ppx_tools_versioned
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
if !lib.versionAtLeast ocaml.version "4.04"
|
||||||
then throw "ppx_import is not available for OCaml ${ocaml.version}"
|
then throw "ppx_import is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
name = "ocaml${ocaml.version}-ppx_import-${version}";
|
pname = "ppx_import";
|
||||||
|
version = "1.5-3";
|
||||||
version = "1.5";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ocaml-ppx";
|
owner = "ocaml-ppx";
|
||||||
repo = "ppx_import";
|
repo = "ppx_import";
|
||||||
rev = "v${version}";
|
rev = "bd627d5afee597589761d6fee30359300b5e1d80";
|
||||||
sha256 = "1lf5lfp6bl5g4gdszaa6k6pkyh3qyhbarg5m1j0ai3i8zh5qg09d";
|
sha256 = "1f9bphif1izhyx72hvwpkd9kxi9lfvygaicy6nbxyp6qgc87z4nm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild cppo ounit ppx_deriving opaline ];
|
buildInputs = [ ounit ppx_deriving ];
|
||||||
|
propagatedBuildInputs = [ ppx_tools_versioned ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
|
meta = {
|
||||||
|
|
||||||
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";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user