haskellPackages.http2: fix build with Darwin sandbox enabled

This commit is contained in:
Randy Eckenrode 2023-05-24 19:35:13 -04:00
parent 15ec108b1d
commit 9b1c02ede8
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -276,6 +276,12 @@ self: super: ({
'' + drv.postPatch or "";
}) super.http-client-tls;
http2 = super.http2.overrideAttrs (drv: {
# Allow access to local networking when the Darwin sandbox is enabled, so http2 can run tests
# that access localhost.
__darwinAllowLocalNetworking = true;
});
foldl = overrideCabal (drv: {
postPatch = ''
# This comment has been inserted, so the derivation hash changes, forcing