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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
478 B
Nix
Raw Normal View History

2020-10-25 18:54:25 +00:00
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
}:
if lib.versionOlder (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
minimalOCamlVersion = "4.08";
2020-10-25 18:54:25 +00:00
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
doCheck = true;
2020-10-25 18:54:25 +00:00
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
2017-11-27 19:08:40 +00:00
}