git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackage.ppx_deriving: fix build with ocaml 4.07
commitecfafd9ddf335191303410881cdd51ab69ac3507 authorGuillaume Girol <symphorien+git@xlumurb.eu> dateTue 1 Mar 2022, 12:00 (5 years ago) parentb2ce01a
1 file changed+4−1
pkgs/development/ocaml-modules/ppx_deriving/default.nix+4−1
pkgs/development/ocaml-modules/ppx_deriving/default.nix+4−1
@@ -5,6 +5,7 @@
55, ppxlib
66, ppx_derivers
77, result
8+, ounit
89, ounit2
910, ocaml-migrate-parsetree
1011, ocaml-migrate-parsetree-2
@@ -51,7 +52,9 @@ buildDunePackage rec {
5152 ];
5253
5354 doCheck = true;
54− checkInputs = [ ounit2 ];
55+ checkInputs = [
56+ (if lib.versionAtLeast version "5.2" then ounit2 else ounit)
57+ ];
5558
5659 meta = with lib; {
5760 description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";