Skip to content

Commit 5c2ee23

Browse files
authored
Merge branch 'mozilla:master' into patch-1
2 parents b344568 + c710498 commit 5c2ee23

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

firefox-overlay.nix

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ self: super:
44
let
55
# This URL needs to be updated about every 2 years when the subkey is rotated.
66
pgpKey = super.fetchurl {
7-
url = "https://download.cdn.mozilla.net/pub/firefox/candidates/89.0-candidates/build2/KEY";
8-
sha256 = "1zm3cq854v4aabzzginmjxdm4gidcf5b522h58272fb0x4z3nimw";
7+
url = "https://download.cdn.mozilla.net/pub/firefox/candidates/113.0.1-candidates/build1/KEY";
8+
sha256 = "beaf64d50d347175af3308e73aaeeb547f912e453bb15594122cb669cc4cabfb";
99
};
1010

1111
# This file is currently maintained manually, if this Nix expression attempt
@@ -185,6 +185,19 @@ let
185185
libPath = with super.lib;
186186
old.libPath
187187
+ optionalString (96 >= getMajorVersion version) (":" + makeLibraryPath [self.xorg.libXtst]);
188+
189+
# Since 2023-04-13-15-26-44 114.0a1, Firefox has new binaries checking
190+
# for hardware, and preventing displays of some video calls services.
191+
installPhase = old.installPhase + ''
192+
for executable in \
193+
glxtest vaapitest
194+
do
195+
if [ -e "$out/usr/lib/firefox-bin-${old.version}/$executable" ]; then
196+
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
197+
"$out/usr/lib/firefox-bin-${old.version}/$executable"
198+
fi
199+
done
200+
'';
188201
}));
189202
in wrapFirefoxCompat { inherit version pkg; };
190203

0 commit comments

Comments
 (0)