1{
2 lib,
3 buildDunePackage,
4 ocaml,
5 alcotest,
6 cstruct,
7 sexplib,
8}:
9
10if lib.versionOlder (cstruct.version or "1") "3" then
11 cstruct
12else
13
14 buildDunePackage {
15 pname = "cstruct-sexp";
16 inherit (cstruct) version src meta;
17
18 minimalOCamlVersion = "4.08";
19 duneVersion = "3";
20
21 doCheck = true;
22 checkInputs = [ alcotest ];
23
24 propagatedBuildInputs = [
25 cstruct
26 sexplib
27 ];
28 }