grpc: switch to overrideSDK

This commit is contained in:
Randy Eckenrode
2023-11-04 01:54:51 -04:00
parent 3412eb7eee
commit b5979d3f60
+3 -7
View File
@@ -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;
};