From ecfafd9ddf335191303410881cdd51ab69ac3507 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Tue, 1 Mar 2022 12:00:00 +0000 Subject: ocamlPackage.ppx_deriving: fix build with ocaml 4.07 --- pkgs/development/ocaml-modules/ppx_deriving/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/development/ocaml-modules') diff --git a/pkgs/development/ocaml-modules/ppx_deriving/default.nix b/pkgs/development/ocaml-modules/ppx_deriving/default.nix index 090c8113ce48..fbe484dea044 100644 --- a/pkgs/development/ocaml-modules/ppx_deriving/default.nix +++ b/pkgs/development/ocaml-modules/ppx_deriving/default.nix @@ -5,6 +5,7 @@ , ppxlib , ppx_derivers , result +, ounit , ounit2 , ocaml-migrate-parsetree , ocaml-migrate-parsetree-2 @@ -51,7 +52,9 @@ buildDunePackage rec { ]; doCheck = true; - checkInputs = [ ounit2 ]; + checkInputs = [ + (if lib.versionAtLeast version "5.2" then ounit2 else ounit) + ]; meta = with lib; { description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02."; -- cgit 1.4.1