From ec042dad008aac588ae62b52edb3839087db626b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 20 Jan 2011 23:32:09 +0000 Subject: [PATCH] GNU Ncurses: Fix C++-less builds. svn path=/nixpkgs/trunk/; revision=25649 --- pkgs/development/libraries/ncurses/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index c714ade8910e..6e15dca01f33 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation (rec { # compatibility links from the the "normal" libraries to the # wide-character libraries (e.g. libncurses.so to libncursesw.so). postInstall = if unicode then '' - chmod 644 $out/lib/libncurses++w.a + ${if cxx then "chmod 644 $out/lib/libncurses++w.a" else ""} for lib in curses ncurses form panel menu; do if test -e $out/lib/lib''${lib}w.a; then rm -f $out/lib/lib$lib.so