3
0
Fork 0
forked from mirrors/nixpkgs

libiconv: Just include the iconv headers

This commit is contained in:
Shea Levy 2016-10-26 22:34:27 -04:00
parent 82cba42dc4
commit 41d894b87f

View file

@ -7937,10 +7937,18 @@ in
(if crossSystem.libc == "glibc" then libcCross
else if crossSystem.libc == "libSystem" then darwin.libiconv
else libiconvReal)
else if stdenv.isGlibc then stdenv.cc.libc
else if stdenv.isGlibc then glibcIconv stdenv.cc.libc
else if stdenv.isDarwin then darwin.libiconv
else libiconvReal;
glibcIconv = libc: let
inherit (builtins.parseDrvName libc.name) name version;
libcDev = lib.getDev libc;
in runCommand "${name}-iconv-${version}" {} ''
mkdir -p $out/include
ln -sv ${libcDev}/include/iconv.h $out/include
'';
libiconvReal = callPackage ../development/libraries/libiconv {
fetchurl = fetchurlBoot;
};