nixpkgs/pkgs/development/ocaml-modules/cstruct/ppx.nix

16 lines
339 B
Nix
Raw Normal View History

{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned }:
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 meta;
2017-11-27 19:08:40 +00:00
minimumOCamlVersion = "4.03";
2017-11-27 19:08:40 +00:00
buildInputs = [ sexplib ppx_tools_versioned ];
2017-11-27 19:08:40 +00:00
propagatedBuildInputs = [ cstruct ];
}