2020-04-09 16:58:32 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
|
2019-08-24 07:02:26 +00:00
|
|
|
|
2022-04-25 20:35:24 +00:00
|
|
|
if lib.versionOlder (cstruct.version or "1") "3"
|
2019-08-24 07:02:26 +00:00
|
|
|
then cstruct
|
|
|
|
else
|
|
|
|
|
2020-04-09 16:58:29 +00:00
|
|
|
buildDunePackage rec {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "cstruct-sexp";
|
2022-10-11 06:50:54 +00:00
|
|
|
inherit (cstruct) version src meta;
|
2019-08-24 07:02:26 +00:00
|
|
|
|
2022-10-11 06:50:54 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-28 06:58:02 +00:00
|
|
|
duneVersion = "3";
|
2020-10-25 18:54:25 +00:00
|
|
|
|
2022-10-11 06:50:54 +00:00
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2019-08-24 07:02:26 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [ cstruct sexplib ];
|
2019-08-24 07:02:26 +00:00
|
|
|
}
|