2018-12-10 19:59:40 +00:00
|
|
|
{ lib, buildDunePackage, cstruct }:
|
|
|
|
|
|
|
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
|
|
|
then cstruct
|
|
|
|
else
|
2017-11-27 19:08:40 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "cstruct-unix";
|
|
|
|
inherit (cstruct) version src useDune2 meta;
|
2017-11-27 19:08:40 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
minimumOCamlVersion = "4.06";
|
2017-11-27 19:08:40 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
2017-11-27 19:08:40 +00:00
|
|
|
}
|