mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-06-29 07:58:35 +02:00
24 lines
602 B
Nix
24 lines
602 B
Nix
|
{ 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";
|
||
|
sha256 = "1pac3jby5p5a6p6vpqc5whkgy36hnn2ph2jbckg3w73hrxrnwmdh";
|
||
|
};
|
||
|
preInstall = "export prefix";
|
||
|
buildInputs =
|
||
|
(if stdenv.isDarwin then [ pkgs.darwin.cctools ] else []) ++ [
|
||
|
autoconf
|
||
|
automake
|
||
|
libtool
|
||
|
which
|
||
|
zlib
|
||
|
openssl
|
||
|
];
|
||
|
}
|