Merge #190093: rustc: propagate libiconv on darwin

...into staging
This commit is contained in:
Vladimír Čunát 2022-09-28 09:45:11 +02:00
commit 292756e9ff
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
3 changed files with 5 additions and 4 deletions

View file

@ -128,7 +128,6 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg
];
buildInputs = buildInputs
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]
++ lib.optionals stdenv.hostPlatform.isMinGW [ windows.pthreads ];
patches = cargoPatches ++ patches;

View file

@ -1,7 +1,7 @@
{ lib, stdenv, pkgsHostHost
, file, curl, pkg-config, python3, openssl, cmake, zlib
, installShellFiles, makeWrapper, cacert, rustPlatform, rustc
, CoreFoundation, Security
, libiconv, CoreFoundation, Security
}:
rustPlatform.buildRustPackage {
@ -25,7 +25,7 @@ rustPlatform.buildRustPackage {
(lib.getDev pkgsHostHost.curl)
];
buildInputs = [ cacert file curl python3 openssl zlib ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
++ lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ];
# cargo uses git-rs which is made for a version of libgit2 from recent master that
# is not compatible with the current version in nixpkgs.

View file

@ -145,9 +145,11 @@ in stdenv.mkDerivation rec {
];
buildInputs = [ openssl ]
++ optionals stdenv.isDarwin [ libiconv Security ]
++ optionals stdenv.isDarwin [ Security ]
++ optional (!withBundledLLVM) llvmShared;
depsTargetTargetPropagated = optionals stdenv.isDarwin [ libiconv ];
outputs = [ "out" "man" "doc" ];
setOutputFlags = false;