diff options
author | Will Dietz <w@wdtz.org> | 2018-01-05 17:59:45 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-02-13 09:44:44 -0600 |
commit | b905c0cb9c2b810a7e23c7edd6143dc0b11a0c20 (patch) | |
tree | 28a33745afe08fb3309d7d066926476994dd1932 /pkgs/development | |
parent | bc999dcac5e0ca17c8dc1e51d12aac3c009a11ad (diff) |
stfl: use libiconv fix on all non-glibc not just darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/stfl/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/stfl/default.nix b/pkgs/development/libraries/stfl/default.nix index 1430c3aa9c295..8a8680a498a03 100644 --- a/pkgs/development/libraries/stfl/default.nix +++ b/pkgs/development/libraries/stfl/default.nix @@ -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 |