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:
parent
4c475520d9
commit
317f4ea72d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue