mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-06-29 07:58:35 +02:00
This updates the `release.nix` to now correctly run the test suite. You can now build and test `grpc-haskell` by running: ``` $ nix-build -A grpc-haskell release.nix ``` ... and `nix-shell` has been updated, too, so that you can do `cabal` development inside of a `nix-shell` by running: ``` $ nix-shell -A grpc-haskell.env release.nix ``` For people who prefer to use `stack` you can still just build the `grpc` library by running: ``` $ nix-build -A grpc release.nix ``` ... then pass that library as input to `stack`
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
|
|
];
|
|
}
|