mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
stfl: use libiconv fix on all non-glibc not just darwin
This commit is contained in:
parent
bc999dcac5
commit
b905c0cb9c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user