ocamlPackges.ppx_tools: fix evaluation for OCaml ≥ 5.2

This commit is contained in:
Vincent Laporte 2024-05-14 05:47:19 +02:00
parent 9d62e426c8
commit 646c7f3be4
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,5 +1,9 @@
{ 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 {