gRPC-haskell/nix/grpc.nix
Joel Stanley 24681a619b Upgrade nix grpc version to 1.0.1 + fix tests (#86)
* Use GRPC v1.01 (grpc-1.0.1-6040b47)

* Minor tweaks to GRPC request result processing (less exact matching on some StatusDetails due to GRPC rev bump)
2016-12-20 15:57:38 -06:00

23 lines
603 B
Nix

{ pkgs, stdenv, lib, fetchgit, autoconf, automake, libtool, which, zlib, openssl
}:
stdenv.mkDerivation rec {
name = "grpc-${version}";
version = "1.0.1-${lib.strings.substring 0 7 rev}";
rev = "6040b471bcd1d6bb05b25c126b6545180a1d3528";
src = fetchgit {
inherit rev;
url = "https://github.com/grpc/grpc.git";
sha256 = "1kx6jkx2dnnfnjfyc50ravfk7mfdszj988vndrlzs1zkd6627k4z";
};
preInstall = "export prefix";
buildInputs =
(if stdenv.isDarwin then [ pkgs.darwin.cctools ] else []) ++ [
autoconf
automake
libtool
which
zlib
openssl
];
}