tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
stfl: use libiconv fix on all non-glibc not just darwin
Will Dietz
8 years ago
b905c0cb
bc999dca
+2
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
stfl
default.nix
+2
-1
pkgs/development/libraries/stfl/default.nix
···
13
13
buildPhase = ''
14
14
sed -i s/gcc/cc/g Makefile
15
15
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
16
16
+
'' + stdenv.lib.optionalString (stdenv.hostPlatform.libc != "glibc") ''
17
17
+
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
16
18
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
17
17
-
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
18
19
sed -i s/-soname/-install_name/ Makefile
19
20
'' ) + ''
20
21
make