2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder (cstruct.version or "1") "3"
|
2020-04-24 23:36:52 +00:00
|
|
|
then cstruct
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "cstruct-sexp";
|
2022-10-21 18:38:19 +00:00
|
|
|
inherit (cstruct) version src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ cstruct sexplib ];
|
|
|
|
}
|