From b5979d3f608dbf01165ed8d21df0978fdb3cdd62 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 4 Nov 2023 01:46:37 -0400 Subject: [PATCH] grpc: switch to overrideSDK --- pkgs/top-level/all-packages.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d221fc0d3cf2..676143844fc8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21827,13 +21827,9 @@ with pkgs; grilo-plugins = callPackage ../development/libraries/grilo-plugins { }; grpc = callPackage ../development/libraries/grpc { - stdenv = if (stdenv.isDarwin && stdenv.isx86_64) then - # Work around Clang check for 10.13 when using aligned allocations with C++17. - stdenv.override (old: { - hostPlatform = old.hostPlatform // { darwinMinVersion = "10.13"; }; - buildPlatform = old.buildPlatform // { darwinMinVersion = "10.13"; }; - targetPlatform = old.targetPlatform // { darwinMinVersion = "10.13"; }; - }) + # Work around Clang check for 10.13 when using aligned allocations with C++17. + stdenv = if stdenv.isDarwin && stdenv.isx86_64 + then overrideSDK stdenv { darwinMinVersion = "10.13"; } else stdenv; };