summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndres Löh2009-04-23 17:48:06 +0000
committerAndres Löh2009-04-23 17:48:06 +0000
commit2bb2373cf98145d7190896785c59f9eb1a2479d5 (patch)
tree27ed8bdb2682440a65495ba6fd71e6cf9f7102a8
parentcea9c122839fc942cc3fb313a35f3ab1ea4e49c9 (diff)
Try to link readline Haskell package against ncursesw.
svn path=/nixpkgs/trunk/; revision=15284
-rw-r--r--pkgs/development/libraries/haskell/readline/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/haskell/readline/default.nix b/pkgs/development/libraries/haskell/readline/default.nix
index fe60a4c51f0d..409d7db27ab4 100644
--- a/pkgs/development/libraries/haskell/readline/default.nix
+++ b/pkgs/development/libraries/haskell/readline/default.nix
@@ -5,6 +5,11 @@ cabal.mkDerivation (self : {
   version = "1.0.1.0";
   sha256 = "07f2f039f32bf18838a4875d0f3caa3ed9436dd52b962b2061f0bb8a3316fa1d";
   propagatedBuildInputs = [ readline ];
+  # experimentally link with ncursesw because ghci can't interpret ld scripts,
+  # and ncurses sometimes seems to be a script pointing to ncursesw
+  postConfigure = ''
+    sed -i -e "/^extra-libraries/ s/ncurses/ncursesw/" readline.buildinfo
+  '';
   meta = {
     description = "An interface to the GNU readline library";
   };