2018-09-05 17:11:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
|
2018-07-05 20:40:30 +01:00
|
|
|
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-14 11:43:47 +01:00
|
|
|
version = "0.3.1";
|
2018-07-05 20:40:30 +01:00
|
|
|
name = "ocaml${ocaml.version}-ppxlib-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-ppx";
|
|
|
|
repo = "ppxlib";
|
|
|
|
rev = version;
|
2018-10-14 11:43:47 +01:00
|
|
|
sha256 = "0qpjl84x8abq9zivifb0k8ld7fa1lrhkbajmmccvfv06ja3as1v4";
|
2018-07-05 20:40:30 +01:00
|
|
|
};
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib dune ];
|
2018-07-05 20:40:30 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
|
|
|
|
];
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildPhase = "dune build";
|
2018-07-05 20:40:30 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
inherit (dune) installPhase;
|
2018-07-05 20:40:30 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Comprehensive ppx tool set";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|