lol

Merge pull request #212170 from alyssais/libcIconv

libiconv: use libc header on NetBSD

authored by

John Ericson and committed by
GitHub
efd68366 ee406a5b

+5 -6
+2 -1
pkgs/os-specific/bsd/netbsd/default.nix
··· 54 54 mkDerivation = lib.makeOverridable (attrs: let 55 55 stdenv' = if attrs.noCC or false then stdenvNoCC else stdenv; 56 56 in stdenv'.mkDerivation ({ 57 - name = "${attrs.pname or (baseNameOf attrs.path)}-netbsd-${attrs.version}"; 57 + pname = "${attrs.pname or (baseNameOf attrs.path)}-netbsd"; 58 + inherit (attrs) version; 58 59 src = fetchNetBSD attrs.path attrs.version attrs.sha256; 59 60 60 61 extraPaths = [ ];
+3 -5
pkgs/top-level/all-packages.nix
··· 21148 21148 # We also provide `libiconvReal`, which will always be a standalone libiconv, 21149 21149 # just in case you want it regardless of platform. 21150 21150 libiconv = 21151 - if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"] 21152 - then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform 21151 + if lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" "nblibc" "wasilibc" ] 21152 + then libcIconv (if stdenv.hostPlatform != stdenv.buildPlatform 21153 21153 then libcCross 21154 21154 else stdenv.cc.libc) 21155 21155 else if stdenv.hostPlatform.isDarwin 21156 21156 then darwin.libiconv 21157 - else if stdenv.hostPlatform.isNetBSD 21158 - then null 21159 21157 else libiconvReal; 21160 21158 21161 - glibcIconv = libc: let 21159 + libcIconv = libc: let 21162 21160 inherit (libc) pname version; 21163 21161 libcDev = lib.getDev libc; 21164 21162 in runCommand "${pname}-iconv-${version}" { strictDeps = true; } ''