From 5e786dedc1b99f68542c0ec8824a87a8d544aaa5 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 10 Dec 2018 19:59:45 +0000 Subject: [PATCH] ocaml-ng.ocamlPackages_4_01_0.ppx_cstruct: fix evaluation --- pkgs/development/ocaml-modules/cstruct/ppx.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/cstruct/ppx.nix b/pkgs/development/ocaml-modules/cstruct/ppx.nix index 5f4130dc23f..78600b78306 100644 --- a/pkgs/development/ocaml-modules/cstruct/ppx.nix +++ b/pkgs/development/ocaml-modules/cstruct/ppx.nix @@ -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";