2016-12-12 19:40:23 +01:00
|
|
|
{ pkgs, stdenv, lib, fetchgit, autoconf, automake, libtool, which, zlib, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "grpc-${version}";
|
2017-04-15 04:28:01 +02:00
|
|
|
version = "1.2.0-${lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "e2cfe9df79c4eda4e376222df064c4c65e616352";
|
2016-12-12 19:40:23 +01:00
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/grpc/grpc.git";
|
2017-04-15 04:28:01 +02:00
|
|
|
sha256 = "19ldbjlnbc287hkaylsigm8w9fai2bjdbfxk6315kl75cq54iprr";
|
2016-12-12 19:40:23 +01:00
|
|
|
};
|
|
|
|
preInstall = "export prefix";
|
|
|
|
buildInputs =
|
|
|
|
(if stdenv.isDarwin then [ pkgs.darwin.cctools ] else []) ++ [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
which
|
|
|
|
zlib
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
}
|