summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cstruct
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-12-10 19:59:45 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-12-17 17:46:46 +0000
commit5e786dedc1b99f68542c0ec8824a87a8d544aaa5 (patch)
tree2a691e06eb72c3d31310970603b2afe877b987de /pkgs/development/ocaml-modules/cstruct
parentf41ac80d74d38321e60f8bc9efb431f498e5e31d (diff)
downloadnixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar.gz
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar.bz2
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar.lz
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar.xz
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.tar.zst
nixpkgs-5e786dedc1b99f68542c0ec8824a87a8d544aaa5.zip
ocaml-ng.ocamlPackages_4_01_0.ppx_cstruct: fix evaluation
Diffstat (limited to 'pkgs/development/ocaml-modules/cstruct')
-rw-r--r--pkgs/development/ocaml-modules/cstruct/ppx.nix6
1 files changed, 5 insertions, 1 deletions
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";