invidious: fix build

The build was broken since 52f8cf58a4504e5e219faebffa51033e400e3aec when
gcc was updated from 10 to 11. This forces lsquic's version of boringssl
to build with gcc 10.

squalus 728b0c81 766cf76b

+7 -3
+7 -3
pkgs/servers/invidious/lsquic.nix
··· 1 - { lib, boringssl, stdenv, fetchgit, fetchFromGitHub, cmake, zlib, perl, libevent }: 1 + { lib, boringssl, stdenv, fetchgit, fetchFromGitHub, cmake, zlib, perl, libevent, gcc10Stdenv, buildGoModule }: 2 2 let 3 3 versions = builtins.fromJSON (builtins.readFile ./versions.json); 4 4 5 + buildGoModuleGcc10 = buildGoModule.override { stdenv = gcc10Stdenv; }; 6 + 5 7 # lsquic requires a specific boringssl version (noted in its README) 6 - boringssl' = boringssl.overrideAttrs (old: { 8 + boringssl' = (boringssl.overrideAttrs (old: { 7 9 version = versions.boringssl.rev; 8 10 src = fetchgit { 9 11 url = "https://boringssl.googlesource.com/boringssl"; ··· 14 16 # Use /etc/ssl/certs/ca-certificates.crt instead of /etc/ssl/cert.pem 15 17 ./use-etc-ssl-certs.patch 16 18 ]; 17 - }); 19 + })).override { 20 + buildGoModule = buildGoModuleGcc10; 21 + }; 18 22 in 19 23 stdenv.mkDerivation rec { 20 24 pname = "lsquic";