Unverified Commit 646c7f3b authored by Vincent Laporte's avatar Vincent Laporte
Browse files

ocamlPackges.ppx_tools: fix evaluation for OCaml ≥ 5.2

parent 9d62e426
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, buildDunePackage, ocaml, findlib, cppo }:

if lib.versionAtLeast ocaml.version "5.2"
then throw "ppx_tools is not available for OCaml ${ocaml.version}"
else

let param =
  let v6_6 = {
    version = "6.6";
@@ -58,7 +62,6 @@ then
  buildDunePackage {
    inherit pname src meta;
    inherit (param) version buildInputs nativeBuildInputs;
    duneVersion = "3";
  }
else
  stdenv.mkDerivation {