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