1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

google-cloud-sdk: fix Darwin build by only stripping local symbols (#80554)

Darwin won't strip relocatable symbols, so strip only local symbols
from cygrpc.so

See also 6ceebc441c (commitcomment-37355193)
This commit is contained in:
Aaron Olson 2020-02-21 12:28:54 -05:00 committed by GitHub
parent 69c0de2fe7
commit 9b8a14bb7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,8 @@ let
};
}.${system};
strip = if stdenv.isDarwin then "strip -x" else "strip";
in stdenv.mkDerivation rec {
pname = "google-cloud-sdk";
version = "268.0.0";
@ -93,7 +95,7 @@ in stdenv.mkDerivation rec {
done
# strip the Cython gRPC library
strip $out/google-cloud-sdk/lib/third_party/grpc/_cython/cygrpc.so
${strip} $out/google-cloud-sdk/lib/third_party/grpc/_cython/cygrpc.so
'';
meta = with stdenv.lib; {