2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildDunePackage, cstruct }:
|
|
|
|
|
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
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "cstruct-unix";
|
|
|
|
inherit (cstruct) version src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
|
|
|
}
|