diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-12-10 19:59:40 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-12-17 17:46:46 +0000 |
commit | f41ac80d74d38321e60f8bc9efb431f498e5e31d (patch) | |
tree | fb78d203c9e576102964608ac3b14b8ce54b8b3d /pkgs/development/ocaml-modules | |
parent | 3cca862a5f4ea8166d5b2968370cb49532e06ffc (diff) | |
download | nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar.gz nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar.bz2 nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar.lz nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar.xz nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.tar.zst nixlib-f41ac80d74d38321e60f8bc9efb431f498e5e31d.zip |
ocaml-ng.ocamlPackages_4_01_0.cstruct-unix: fix evaluation
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/cstruct/unix.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/cstruct/unix.nix b/pkgs/development/ocaml-modules/cstruct/unix.nix index fb7612b5f05e..604ad4fb083b 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"; |