From 6c4364041052bc49195e47cb55983a741b644934 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 11 Aug 2015 12:16:10 -0700 Subject: [PATCH] ghc: Fix compatability with new versions of ncurses --- pkgs/development/compilers/ghc/7.4.2-binary.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/7.4.2-binary.nix b/pkgs/development/compilers/ghc/7.4.2-binary.nix index 25c9dd0a65a..88db6738ca0 100644 --- a/pkgs/development/compilers/ghc/7.4.2-binary.nix +++ b/pkgs/development/compilers/ghc/7.4.2-binary.nix @@ -60,9 +60,11 @@ stdenv.mkDerivation rec { # On Linux, use patchelf to modify the executables so that they can # find editline/gmp. stdenv.lib.optionalString stdenv.isLinux '' + mkdir -p "$out/lib" + ln -sv "${ncurses}/lib/libncurses.so" "$out/lib/libncursesw.so.5" find . -type f -perm +100 \ -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath "${ncurses}/lib:${gmp}/lib" {} \; + --set-rpath "$out/lib:${gmp}/lib" {} \; sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2 for prog in ld ar gcc strip ranlib; do