From 80ebd25f6612b204f382ddfd9c360270d42a35be Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 3 Aug 2022 11:46:14 +0200 Subject: [PATCH] reason: fix build with OCaml < 4.07 --- pkgs/development/compilers/reason/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix index 1de8de40c89d..ad075b5adb4b 100644 --- a/pkgs/development/compilers/reason/default.nix +++ b/pkgs/development/compilers/reason/default.nix @@ -1,4 +1,5 @@ { lib, callPackage, stdenv, makeWrapper, fetchurl, ocaml, findlib, dune_2 +, ncurses , fix, menhir, menhirLib, menhirSdk, merlin-extend, ppxlib, utop, cppo, ppx_derivers }: @@ -26,7 +27,7 @@ stdenv.mkDerivation rec { ocaml ppxlib utop - ]; + ] ++ lib.optional (lib.versionOlder ocaml.version "4.07") ncurses; propagatedBuildInputs = [ menhirLib