libcIconv: rename from glibcIconv
There's nothing Glibc-specific about this function — it's already used for musl and wasilibc as well! I haven't bothered with an alias as I think it's highly unlikely anybody uses this function outside Nixpkgs.
This commit is contained in:
parent
4e9efbd52a
commit
be62259393
@ -21144,7 +21144,7 @@ with pkgs;
|
||||
# just in case you want it regardless of platform.
|
||||
libiconv =
|
||||
if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
|
||||
then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
|
||||
then libcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
|
||||
then libcCross
|
||||
else stdenv.cc.libc)
|
||||
else if stdenv.hostPlatform.isDarwin
|
||||
@ -21153,7 +21153,7 @@ with pkgs;
|
||||
then null
|
||||
else libiconvReal;
|
||||
|
||||
glibcIconv = libc: let
|
||||
libcIconv = libc: let
|
||||
inherit (libc) pname version;
|
||||
libcDev = lib.getDev libc;
|
||||
in runCommand "${pname}-iconv-${version}" { strictDeps = true; } ''
|
||||
|
Loading…
Reference in New Issue
Block a user