3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cstruct/ppx.nix

15 lines
347 B
Nix
Raw Normal View History

2020-11-19 06:36:41 +00:00
{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned, ppxlib }:
if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else
2017-11-27 19:08:40 +00:00
buildDunePackage {
pname = "ppx_cstruct";
inherit (cstruct) version src useDune2 meta;
2017-11-27 19:08:40 +00:00
minimumOCamlVersion = "4.03";
2017-11-27 19:08:40 +00:00
propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ];
2017-11-27 19:08:40 +00:00
}