···19mixRelease rec {
20 inherit (common) pname version src;
2122- # Version 5.1.1 failed to bump their internal package version,
23- # which causes issues with static file serving in the NixOS module.
24- # See https://github.com/NixOS/nixpkgs/pull/370277
25- patches = [ ./0001-fix-version.patch ];
0000000002627 nativeBuildInputs = [
28 git
···19mixRelease rec {
20 inherit (common) pname version src;
2122+ patches = [
23+ # Version 5.1.1 failed to bump their internal package version,
24+ # which causes issues with static file serving in the NixOS module.
25+ # See https://github.com/NixOS/nixpkgs/pull/370277
26+ ./0001-fix-version.patch
27+ # Mobilizon uses chunked Transfer-Encoding for the media proxy but also
28+ # sets the Content-Length header. This is a HTTP/1.1 protocol violation
29+ # and results in nginx >=1.24 rejecting the response with this error:
30+ # 'upstream sent "Content-Length" and "Transfer-Encoding" headers at the same
31+ # time while reading response header from upstream'
32+ # Upstream PR: https://framagit.org/framasoft/mobilizon/-/merge_requests/1604
33+ ./0002-fix-media-proxy.patch
34+ ];
3536 nativeBuildInputs = [
37 git