From 3cca862a5f4ea8166d5b2968370cb49532e06ffc Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 10 Dec 2018 19:59:32 +0000 Subject: [PATCH] ocaml-ng.ocamlPackages_4_01_0.cstruct-lwt: fix evaluation --- pkgs/development/ocaml-modules/cstruct/lwt.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/cstruct/lwt.nix b/pkgs/development/ocaml-modules/cstruct/lwt.nix index fc6218389662..5a10d7cae48d 100644 --- a/pkgs/development/ocaml-modules/cstruct/lwt.nix +++ b/pkgs/development/ocaml-modules/cstruct/lwt.nix @@ -1,4 +1,8 @@ -{ buildDunePackage, cstruct, lwt }: +{ lib, buildDunePackage, cstruct, lwt }: + +if !lib.versionAtLeast (cstruct.version or "1") "3" +then cstruct +else buildDunePackage { pname = "cstruct-lwt";