ncurses: header location fixes

- move headers directly to $out/include and set up symlinks.
Some packages were failing to find them (e.g. mariadb).
- postInstall was failing, only it was ignored due to a bug;
now it succeeds.
This commit is contained in:
Vladimír Čunát 2015-06-03 20:02:03 +02:00
parent 4c475520d9
commit 317f4ea72d

View File

@ -54,6 +54,8 @@ stdenv.mkDerivation rec {
ln -svf $cfg $out/bin/ncurses-config
# Allow for end users who #include <ncurses?w/*.h>
mv "$out"/include/ncursesw/* "$out"/include/
rmdir "$out"/include/ncursesw
ln -svf . $out/include/ncursesw
ln -svf . $out/include/ncurses
@ -83,6 +85,8 @@ stdenv.mkDerivation rec {
ln -svf $cfg $out/bin/ncurses-config
# Allow for end users who #include <ncurses/*.h>
mv "$out"/include/ncurses/* "$out"/include/
rmdir "$out"/include/ncurses
ln -svf . $out/include/ncurses
# Create curses compatability