Merge pull request #282597 from prTopi/freetube-ozone-patch

freetube: make compatible with NIXOS_OZONE_WL
This commit is contained in:
kirillrdy 2024-02-10 07:20:49 +11:00 committed by GitHub
commit d035354673
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,8 @@ let
inherit name;
nodes = { "${name}" = machine; };
meta.maintainers = with pkgs.lib.maintainers; [ kirillrdy ];
# time-out on ofborg
meta.broken = pkgs.stdenv.isAarch64;
enableOCR = true;
testScript = ''

View file

@ -39,7 +39,8 @@ stdenv.mkDerivation rec {
postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar
--add-flags $out/share/${pname}/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
'';
meta = with lib; {