google-chrome: Fix the EGL backend

This commit is contained in:
Michael Weiss 2020-07-15 15:24:24 +02:00
parent 40d449525a
commit f05b67ec83
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -105,6 +105,12 @@ in stdenv.mkDerivation {
cp -a opt/* $out/share
cp -a usr/share/* $out/share
# To fix --use-gl=egl:
test -e $out/share/google/$appname/libEGL.so
ln -s libEGL.so $out/share/google/$appname/libEGL.so.1
test -e $out/share/google/$appname/libGLESv2.so
ln -s libGLESv2.so $out/share/google/$appname/libGLESv2.so.2
substituteInPlace $out/share/applications/google-$appname.desktop \
--replace /usr/bin/google-chrome-$dist $exe
substituteInPlace $out/share/gnome-control-center/default-apps/google-$appname.xml \