mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
libiconv: Just include the iconv headers
This commit is contained in:
parent
82cba42dc4
commit
41d894b87f
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue