gRPC-haskell/default.nix
Gabriel Gonzalez c02546f696 Fix grpc-haskell tests for Nix (#80)
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`
2016-12-12 10:40:23 -08:00

32 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;
}