Add missing pipes and tasty-hunit for the nix-shell

So that now the tests can be ran successfully by:

```
cabal configure --enable-tests && cabal build && cabal test
```
This commit is contained in:
Viacheslav Lotsmanov 2022-07-29 14:27:54 +03:00
parent 926a9d90cf
commit 2cf0feb689
No known key found for this signature in database
GPG key ID: D276FF7467007335
2 changed files with 5 additions and 2 deletions

2
.gitignore vendored
View file

@ -8,7 +8,7 @@ examples/echo/echo-cpp/echo-server
benchmarks.html
result
*~
cabal.project.local
cabal.project.local*
dist-newstyle/
tests/py-tmp
tests/tmp

View file

@ -1,7 +1,7 @@
# If you would like to test and build changes quickly using `cabal`, run:
#
# $ nix-shell
# [nix-shell]$ cabal configure --enable-tests && cabal test
# [nix-shell]$ cabal configure --enable-tests && cabal build && cabal test
#
# This will open up a Nix shell where all of your Haskell tools will work like
# normal, except that all dependencies (including C libraries) are managed by
@ -121,6 +121,8 @@ let
pkgs.grpc-haskell-no-tests
# Include some additional packages in this custom ghc for
# running tests in the nix-shell environment.
pkgs.pipes
pkgs.tasty-hunit
pkgs.tasty-quickcheck
pkgs.turtle
]);
@ -136,6 +138,7 @@ let
buildDepends = (old.buildDepends or [ ]) ++ [
pkgsSelf.makeWrapper
# Give our nix-shell its own cabal so we don't pick up one
# from the user's environment by accident.
hsSelf.cabal-install