haskellPackages.http2-client: fix w/ current http2, tls, network#386711
Conversation
| http2-client = appendPatches [ | ||
| (fetchpatch { | ||
| name = "http2-client-fix-build-with-http2-5.2.patch"; | ||
| url = "https://github.com/haskell-grpc-native/http2-client/commit/952a57d1138dc31863a5e387dbda67cbdfcfd9f4.patch"; | ||
| sha256 = "1q0n7338rjz7zl6xpw51lljp7xw1gl128s1d5877kfil3fc23npp"; | ||
| }) super.http2-client; | ||
| name = "http2-client-fix-build-with-http2-5.3.patch"; | ||
| url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch"; | ||
| sha256 = "09205ziac59axld8v1cyxa9xl42srypaq8d1gf6y3qwpmrx3rgr9"; | ||
| }) | ||
| ] (doJailbreak super.http2-client); |
There was a problem hiding this comment.
I originally also picked the patch relaxing the tls bound from haskell-grpc-native/http2-client#97, but the network bound is also too strict so I decided I wouldn't bother and just jailbreak.
| sha256 = "1q0n7338rjz7zl6xpw51lljp7xw1gl128s1d5877kfil3fc23npp"; | ||
| }) super.http2-client; | ||
| name = "http2-client-fix-build-with-http2-5.3.patch"; | ||
| url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch"; |
There was a problem hiding this comment.
URLs like this can break when the PR is force-pushed, might want to do this instead:
| url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch"; | |
| url = "https://github.com/haskell-grpc-native/http2-client/commit/95143e4843253913097838ab791ef39ddfd90b33.patch"; |
There was a problem hiding this comment.
Even with the alternative the link it'll break on force pushes since GitHub usually gcs the commit iirc?
There was a problem hiding this comment.
Not sure. We've had better luck with URLs like this but nothing is certain.
There was a problem hiding this comment.
In my experience the recommended change is more stable. It‘s not rock solid according to reports I‘ve heard, but it’s the best we can do.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.