stfl: fix darwin build

- Use "cc" instead of "gcc".
- Add missing pthread to build.
This commit is contained in:
Matthew Bauer 2016-08-12 00:08:08 -05:00
parent 5f0d155f5b
commit 0a76d1eb75

View File

@ -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