From abc50135a4ff1d4a48b42ab2054ee2131b90dc66 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 17 Jul 2025 14:19:04 +0200 Subject: [PATCH] rustc: unset PKG_CONFIG_* This hasn't been required to cross compile rustc since 20e24e42d474 ("rustc: 1.67.1 -> 1.68.0"). --- pkgs/development/compilers/rust/rustc.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 18a889fe9349..dd0fbc2708d6 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -82,13 +82,6 @@ stdenv.mkDerivation (finalAttrs: { # See: https://github.com/NixOS/nixpkgs/pull/56540#issuecomment-471624656 stripDebugList = [ "bin" ]; - # The Rust pkg-config crate does not support prefixed pkg-config executables[1], - # but it does support checking these idiosyncratic PKG_CONFIG_${TRIPLE} - # environment variables. - # [1]: https://github.com/rust-lang/pkg-config-rs/issues/53 - "PKG_CONFIG_${builtins.replaceStrings [ "-" ] [ "_" ] stdenv.buildPlatform.rust.rustcTarget}" = - "${pkgsBuildHost.stdenv.cc.targetPrefix}pkg-config"; - NIX_LDFLAGS = toString ( # when linking stage1 libstd: cc: undefined reference to `__cxa_begin_catch' # This doesn't apply to cross-building for FreeBSD because the host