mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-05 10:49:42 +01:00
c02546f696
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`
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
{ mkDerivation, async, base, bytestring, c2hs, clock, containers
|
|
, grpc, managed, pipes, proto3-wire, protobuf-wire, QuickCheck
|
|
, random, safe, sorted-list, stdenv, stm, tasty, tasty-hunit
|
|
, tasty-quickcheck, text, time, transformers, turtle, unix, vector
|
|
}:
|
|
mkDerivation {
|
|
pname = "grpc-haskell";
|
|
version = "0.0.0.0";
|
|
src = ./.;
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
async base bytestring clock containers managed pipes proto3-wire
|
|
protobuf-wire safe sorted-list stm tasty tasty-hunit transformers
|
|
vector
|
|
];
|
|
librarySystemDepends = [ grpc ];
|
|
libraryToolDepends = [ c2hs ];
|
|
executableHaskellDepends = [
|
|
async base bytestring containers proto3-wire protobuf-wire random
|
|
text transformers
|
|
];
|
|
testHaskellDepends = [
|
|
async base bytestring clock containers managed pipes protobuf-wire
|
|
QuickCheck safe tasty tasty-hunit tasty-quickcheck text time
|
|
transformers turtle unix
|
|
];
|
|
homepage = "http://github.com/aloiscochard/grpc-haskell";
|
|
description = "Haskell implementation of gRPC layered on shared C library";
|
|
license = stdenv.lib.licenses.asl20;
|
|
}
|