aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/grpc
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2019-12-02 16:02:32 -0500
committerBen Wolsieffer <benwolsieffer@gmail.com>2019-12-02 16:14:15 -0500
commit279b5a60ffb8b882a4940d729e83607d51620d64 (patch)
treec41aff2e0cb577939f761b051ee436da864527b4 /pkgs/development/libraries/grpc
parent5a3dcb531e3b860f17b799761f2881e6bfa20415 (diff)
grpc: fix build on armv6l
Diffstat (limited to 'pkgs/development/libraries/grpc')
-rw-r--r--pkgs/development/libraries/grpc/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix
index 273b5b1e711b..2fa76b2e0858 100644
--- a/pkgs/development/libraries/grpc/default.nix
+++ b/pkgs/development/libraries/grpc/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, cmake, zlib, c-ares, pkgconfig, openssl, protobuf, gflags }:
+{ stdenv, fetchFromGitHub, fetchpatch, cmake, zlib, c-ares, pkgconfig, openssl, protobuf, gflags }:
stdenv.mkDerivation rec {
version = "1.25.0"; # N.B: if you change this, change pythonPackages.grpcio and pythonPackages.grpcio-tools to a matching version too
@@ -10,6 +10,14 @@ stdenv.mkDerivation rec {
sha256 = "02nbmbk1xpibjzvbhi8xpazmwry46ki24vks1sh2p0aqwy4hv6yb";
fetchSubmodules = true;
};
+ patches = [
+ # Fix build on armv6l (https://github.com/grpc/grpc/pull/21341)
+ (fetchpatch {
+ url = "https://github.com/grpc/grpc/commit/ffb8a278389c8e3403b23a9897b65a7390c34645.patch";
+ sha256 = "1lc12a3gccg9wxqhnwgldlj3zmlm6lxg8dssvvj1x7hf655kw3w3";
+ })
+ ];
+
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ zlib c-ares c-ares.cmake-config openssl protobuf gflags ];