summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-02-23 01:54:50 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-02-23 06:21:11 +0200
commit8afcfb2bb6681c56ecf21e056d91d6748d953997 (patch)
tree1668cb2623eac85cf1a1a17bb5066f3f762e68ce /pkgs/development/ocaml-modules
parent71b0de10199e8b1cc184fead33eaec4819698a9d (diff)
downloadnixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar.gz
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar.bz2
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar.lz
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar.xz
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.tar.zst
nixlib-8afcfb2bb6681c56ecf21e056d91d6748d953997.zip
ocamlPackages.curses: Fix build after ncurses5 changes
Fixes build after commit 3d24ae9b4426bb8adfcb08de57be21fdf0a377f8:

https://github.com/NixOS/nixpkgs/commit/3d24ae9b4426bb8adfcb08de57be21fdf0a377f8#commitcomment-27714305

Thanks to dtzWill for the pointer:
https://github.com/NixOS/nixpkgs/pull/34477#issuecomment-367359351
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/curses/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/curses/default.nix b/pkgs/development/ocaml-modules/curses/default.nix
index 4fd75e7aac53..eebb2f68f3dd 100644
--- a/pkgs/development/ocaml-modules/curses/default.nix
+++ b/pkgs/development/ocaml-modules/curses/default.nix
@@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ ocaml findlib ];
 
+  # Fix build for recent ncurses versions
+  NIX_CFLAGS_COMPILE = [ "-DNCURSES_INTERNALS=1" ];
+
   createFindlibDestdir = true;
 
   postPatch = ''