···5454 mkDerivation = lib.makeOverridable (attrs: let
5555 stdenv' = if attrs.noCC or false then stdenvNoCC else stdenv;
5656 in stdenv'.mkDerivation ({
5757- name = "${attrs.pname or (baseNameOf attrs.path)}-netbsd-${attrs.version}";
5757+ pname = "${attrs.pname or (baseNameOf attrs.path)}-netbsd";
5858+ inherit (attrs) version;
5859 src = fetchNetBSD attrs.path attrs.version attrs.sha256;
59606061 extraPaths = [ ];
+3-5
pkgs/top-level/all-packages.nix
···2114821148 # We also provide `libiconvReal`, which will always be a standalone libiconv,
2114921149 # just in case you want it regardless of platform.
2115021150 libiconv =
2115121151- if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
2115221152- then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
2115121151+ if lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" "nblibc" "wasilibc" ]
2115221152+ then libcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
2115321153 then libcCross
2115421154 else stdenv.cc.libc)
2115521155 else if stdenv.hostPlatform.isDarwin
2115621156 then darwin.libiconv
2115721157- else if stdenv.hostPlatform.isNetBSD
2115821158- then null
2115921157 else libiconvReal;
21160211582116121161- glibcIconv = libc: let
2115921159+ libcIconv = libc: let
2116221160 inherit (libc) pname version;
2116321161 libcDev = lib.getDev libc;
2116421162 in runCommand "${pname}-iconv-${version}" { strictDeps = true; } ''