mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
libiconv: use libc header on NetBSD
Let's be consistent about this. Updated netbsd.libc to have a pname attribute so it's compatible with libcIconv.
This commit is contained in:
parent
be62259393
commit
b19185fdb2
|
@ -54,7 +54,8 @@ in makeScopeWithSplicing
|
|||
mkDerivation = lib.makeOverridable (attrs: let
|
||||
stdenv' = if attrs.noCC or false then stdenvNoCC else stdenv;
|
||||
in stdenv'.mkDerivation ({
|
||||
name = "${attrs.pname or (baseNameOf attrs.path)}-netbsd-${attrs.version}";
|
||||
pname = "${attrs.pname or (baseNameOf attrs.path)}-netbsd";
|
||||
inherit (attrs) version;
|
||||
src = fetchNetBSD attrs.path attrs.version attrs.sha256;
|
||||
|
||||
extraPaths = [ ];
|
||||
|
|
|
@ -21143,14 +21143,12 @@ with pkgs;
|
|||
# We also provide `libiconvReal`, which will always be a standalone libiconv,
|
||||
# just in case you want it regardless of platform.
|
||||
libiconv =
|
||||
if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
|
||||
if lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" "nblibc" "wasilibc" ]
|
||||
then libcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
|
||||
then libcCross
|
||||
else stdenv.cc.libc)
|
||||
else if stdenv.hostPlatform.isDarwin
|
||||
then darwin.libiconv
|
||||
else if stdenv.hostPlatform.isNetBSD
|
||||
then null
|
||||
else libiconvReal;
|
||||
|
||||
libcIconv = libc: let
|
||||
|
|
Loading…
Reference in a new issue