about summary refs log tree commit diff
path: root/pkgs/development/compilers/reason
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-08-03 11:46:14 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2022-08-03 11:56:45 +0200
commit80ebd25f6612b204f382ddfd9c360270d42a35be (patch)
tree4033df7aab74ff0c233515e6c397151eaf639914 /pkgs/development/compilers/reason
parent30ec26b58075129d7550cf73f8ec72947ba37a09 (diff)
reason: fix build with OCaml < 4.07
Diffstat (limited to 'pkgs/development/compilers/reason')
-rw-r--r--pkgs/development/compilers/reason/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix
index 1de8de40c89d5..ad075b5adb4b3 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