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

16 lines
323 B
Nix
Raw Normal View History

{ lib, buildDunePackage, cstruct, ppx_tools_versioned }:
if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else
2017-11-27 20:08:40 +01:00
buildDunePackage {
pname = "ppx_cstruct";
inherit (cstruct) version src meta;
2017-11-27 20:08:40 +01:00
minimumOCamlVersion = "4.02";
2017-11-27 20:08:40 +01:00
buildInputs = [ ppx_tools_versioned ];
2017-11-27 20:08:40 +01:00
propagatedBuildInputs = [ cstruct ];
}