stfl: fix darwin build
- Use "cc" instead of "gcc". - Add missing pthread to build.
This commit is contained in:
parent
5f0d155f5b
commit
0a76d1eb75
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ ncurses libiconv ];
|
||||
|
||||
buildPhase = ''
|
||||
sed -i s/gcc/cc/g Makefile
|
||||
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
|
||||
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user