2016-12-12 19:40:23 +01:00
|
|
|
{ pkgs, stdenv, lib, fetchgit, autoconf, automake, libtool, which, zlib, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "grpc-${version}";
|
|
|
|
version = "0.15-${lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "03efbd34ce64615f58007eae667b375accc6c8e6";
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = "https://github.com/grpc/grpc.git";
|
2016-12-19 23:53:44 +01:00
|
|
|
sha256 = "0a48swsip09bd0yk80gl9r7pny9dal3byyd22bdz4fcvydna43m0";
|
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
|
|
|
|
];
|
|
|
|
}
|