mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-17 00:29:42 +01:00
Fix test-grpc-haskell shell
These changes seemed necessary in order to actually build and run the tests sucessfully inside `nix-shell release.nix --attr test-grpc-haskell`.
This commit is contained in:
parent
e80dd2ff31
commit
f7ee958dbd
1 changed files with 19 additions and 5 deletions
24
release.nix
24
release.nix
|
@ -190,12 +190,26 @@ let
|
||||||
test-grpc-haskell =
|
test-grpc-haskell =
|
||||||
pkgsNew.mkShell {
|
pkgsNew.mkShell {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
(pkgsNew.haskellPackages.ghcWithPackages (pkgs: [
|
(with pkgsNew.haskellPackages; [
|
||||||
pkgs.grpc-haskell
|
cabal-install
|
||||||
]
|
c2hs
|
||||||
)
|
(ghcWithPackages (pkgs: with pkgs; [
|
||||||
)
|
grpc-haskell-core
|
||||||
|
# No need to guard nix-shell entry on passing package tests
|
||||||
|
(pkgsNew.haskell.lib.dontCheck grpc-haskell)
|
||||||
|
language-c
|
||||||
|
# Additional packages we need to have available for building
|
||||||
|
# and running tests in the nix-shell environment
|
||||||
|
mmorph pipes tasty tasty-hunit tasty-quickcheck
|
||||||
|
]))
|
||||||
|
])
|
||||||
|
(pkgsNew.python.withPackages (pkgs: [ pkgs.grpcio-tools ]))
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
${shell-hook-common}
|
||||||
|
echo Running: cabal configure --extra-include-dirs ${pkgsNew.grpc}/include --extra-lib-dirs ${pkgsNew.grpc}/lib --enable-tests
|
||||||
|
cabal configure --extra-include-dirs ${pkgsNew.grpc}/include --extra-lib-dirs ${pkgsNew.grpc}/lib --enable-tests
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
usesGRPC = haskellPackage:
|
usesGRPC = haskellPackage:
|
||||||
|
|
Loading…
Reference in a new issue