@@ -1,23 +1,19 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib, ocaml-migrate-parsetree }:
1+{ lib, fetchFromGitHub, buildDunePackage, ocaml-migrate-parsetree }:
22
3−stdenv.mkDerivation rec {
4− name = "ocaml${ocaml.version}-ppx_tools_versioned-${version}";
5− version = "5.1";
3+buildDunePackage rec {
4+ pname = "ppx_tools_versioned";
5+ version = "5.2.3";
66
77 src = fetchFromGitHub {
8− owner = "let-def";
9− repo = "ppx_tools_versioned";
8+ owner = "ocaml-ppx";
9+ repo = pname;
1010 rev = version;
11− sha256 = "1c7kvca67qpyr4hiy492yik5x31lmkhyhy5wpl0l0fbx7fr7l624";
11+ sha256 = "1hcmpnw26zf70a71r3d2c2c0mn8q084gdn1r36ynng6fv9hq6j0y";
1212 };
1313
14− buildInputs = [ ocaml findlib ];
15−
1614 propagatedBuildInputs = [ ocaml-migrate-parsetree ];
1715
18− createFindlibDestdir = true;
19−
20− meta = with stdenv.lib; {
16+ meta = with lib; {
2117 homepage = https://github.com/let-def/ppx_tools_versioned;
2218 description = "Tools for authors of syntactic tools (such as ppx rewriters)";
2319 license = licenses.gpl2;