ocamlPackages.camlp4: fix evaluation for OCaml ≥ 4.09

This commit is contained in:
Vincent Laporte 2019-10-18 06:20:17 +00:00 committed by Vincent Laporte
parent 74ad305f65
commit 0361ae2230

View File

@ -1,5 +1,9 @@
{ stdenv, fetchzip, which, ocaml, ocamlbuild }:
if stdenv.lib.versionAtLeast ocaml.version "4.09"
then throw "camlp4 is not available for OCaml ${ocaml.version}"
else
let param = {
"4.02" = {
version = "4.02+6";