diff --git a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix index 5d27dc35396c..363b774aaeba 100644 --- a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix +++ b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix @@ -1,11 +1,9 @@ -{ stdenv, buildOcaml, fetchFromGitHub, ocaml-migrate-parsetree }: +{ stdenv, fetchFromGitHub, ocaml, findlib, ocaml-migrate-parsetree }: -buildOcaml rec { - name = "ppx_tools_versioned"; +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-ppx_tools_versioned-${version}"; version = "5.1"; - minimumSupportedOcamlVersion = "4.02"; - src = fetchFromGitHub { owner = "let-def"; repo = "ppx_tools_versioned"; @@ -13,6 +11,8 @@ buildOcaml rec { sha256 = "1c7kvca67qpyr4hiy492yik5x31lmkhyhy5wpl0l0fbx7fr7l624"; }; + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ ocaml-migrate-parsetree ]; createFindlibDestdir = true;