3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #64343 from mkaito/mkaito/haskell-fix-servant-014

haskellPackages.servant-client-core: apply patch only to 0.15
This commit is contained in:
Domen Kožar 2019-07-06 14:57:20 +02:00 committed by GitHub
commit da20f61444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,7 +492,11 @@ self: super: builtins.intersectAttrs super {
servant-streaming-server = dontCheck super.servant-streaming-server;
# https://github.com/haskell-servant/servant/pull/1128
servant-client-core = appendPatch super.servant-client-core ./patches/servant-client-core-streamBody.patch;
servant-client-core = if (pkgs.lib.getVersion super.servant-client-core) == "0.15" then
appendPatch super.servant-client-core ./patches/servant-client-core-streamBody.patch
else
super.servant-client-core;
# tests run executable, relying on PATH
# without this, tests fail with "Couldn't launch intero process"