mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-05 10:49:42 +01:00
d66a4f98b3
* update channel arg names, add compression level arg support, add compression level arg test * switch to temp test demonstrating bug in grpc 0.15.0 * memset op array to 0 * switch examples back * Switch to newer `grpc` and enable tests in `release.nix` * Split out `simple-server` test into separate shell script * Fix bash invocation * Add intermediate `./default-tests.nix` build * Add `tests.patch` to version control * Split `python` command into separate script * Provide `python` via `nix`
29 lines
825 B
Nix
29 lines
825 B
Nix
{ grpc-haskell-no-tests
|
|
, ghc
|
|
, python
|
|
}:
|
|
|
|
attrs@
|
|
{ mkDerivation, async, base, bytestring, c2hs, clock, containers
|
|
, grpc, managed, pipes, proto3-wire, protobuf-wire, random, safe
|
|
, sorted-list, stdenv, stm, tasty, tasty-hunit, tasty-quickcheck
|
|
, text, time, transformers, turtle, unix, vector
|
|
}:
|
|
|
|
let
|
|
mkDerivation' = oldAttrs: mkDerivation (oldAttrs // {
|
|
patches = [ tests/tests.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace tests/simple-server.sh --replace @ghc@ ${ghc} --replace @shell@ ${stdenv.shell}
|
|
substituteInPlace tests/protoc.sh --replace @python@ ${python} --replace @shell@ ${stdenv.shell}
|
|
'';
|
|
|
|
testHaskellDepends = oldAttrs.testHaskellDepends ++ [
|
|
ghc grpc-haskell-no-tests
|
|
];
|
|
|
|
doCheck = true;
|
|
});
|
|
|
|
in import ./default.nix (attrs // { mkDerivation = mkDerivation'; })
|