Merge pull request #34943 from dtzWill/feature/ngx_brotli-eustas

nginx/modules: use eustas' brotli module, google one is abandoned
This commit is contained in:
Will Dietz 2018-02-23 10:13:08 -06:00 committed by GitHub
commit 22b5aebe9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,13 +2,17 @@
{
brotli = {
src = fetchFromGitHub {
owner = "google";
src = let gitsrc = pkgs.fetchFromGitHub {
owner = "eustas";
repo = "ngx_brotli";
rev = "bfd2885b2da4d763fed18f49216bb935223cd34b";
sha256 = "04yx1n0wi3l2x37jd1ynl9951qxkn8xp42yv0mfp1qz9svips81n";
fetchSubmodules = true;
};
rev = "8cd9dd5fc232d3a01644584921e52dae99034779";
sha256 = "0ap1kf51hzb8yvvxjkcj9hnmsmmd5drcay64hd4n7vybf9dqw6g6";
}; in pkgs.runCommandNoCC "ngx_brotli-src" {} ''
cp -a ${gitsrc} $out
substituteInPlace $out/config \
--replace /usr/local ${lib.getDev pkgs.brotli}
'';
inputs = [ pkgs.brotli ];
};
rtmp ={