ocaml-ng.ocamlPackages_4_01_0.ppx_cstruct: fix evaluation

This commit is contained in:
Vincent Laporte 2018-12-10 19:59:45 +00:00 committed by Vincent Laporte
parent f41ac80d74
commit 5e786dedc1

View File

@ -1,4 +1,8 @@
{ buildDunePackage, cstruct, ppx_tools_versioned }:
{ lib, buildDunePackage, cstruct, ppx_tools_versioned }:
if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else
buildDunePackage {
pname = "ppx_cstruct";