diff --git a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix b/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix index 3f02ee5c603e..33f3daf1de8f 100644 --- a/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix +++ b/pkgs/build-support/dotnet/fetch-nupkg/overrides.nix @@ -79,7 +79,10 @@ lib.optionalAttrs stdenv.hostPlatform.isLinux { nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ autoPatchelfHook ]; - buildInputs = old.buildInputs or [ ] ++ [ fontconfig ]; + buildInputs = + old.buildInputs or [ ] + ++ [ fontconfig ] + ++ lib.optional (lib.versionAtLeast old.version "4") (lib.getLib stdenv.cc.cc); preInstall = old.preInstall or "" + '' cd runtimes