stfl: use libiconv fix on all non-glibc not just darwin

This commit is contained in:
Will Dietz 2018-01-05 17:59:45 -06:00
parent bc999dcac5
commit b905c0cb9c

View File

@ -13,8 +13,9 @@ stdenv.mkDerivation rec {
buildPhase = ''
sed -i s/gcc/cc/g Makefile
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
'' + stdenv.lib.optionalString (stdenv.hostPlatform.libc != "glibc") ''
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
sed -i s/-soname/-install_name/ Makefile
'' ) + ''
make