2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildDunePackage, cstruct }:
|
|
|
|
|
|
|
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
|
|
|
then cstruct
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "cstruct-unix";
|
2020-11-30 08:33:03 +00:00
|
|
|
inherit (cstruct) version src useDune2 meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct ];
|
|
|
|
}
|