2017-03-12 07:29:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-ocaml-migrate-parsetree-${version}";
|
2017-04-08 12:34:41 +01:00
|
|
|
version = "0.7";
|
2017-03-12 07:29:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "let-def";
|
|
|
|
repo = "ocaml-migrate-parsetree";
|
|
|
|
rev = "v${version}";
|
2017-04-08 12:34:41 +01:00
|
|
|
sha256 = "142svvixhz153argd3khk7sr38dhiy4w6sck4766f8b48p41pp3m";
|
2017-03-12 07:29:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild jbuilder ];
|
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for p in *.install
|
|
|
|
do
|
|
|
|
${jbuilder.installPhase} $p
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert OCaml parsetrees between different major versions";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|