From a66a98401112ddc12690dbbba6b7544313215f2c Mon Sep 17 00:00:00 2001 From: Topi <17724308+prTopi@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:02:17 +0200 Subject: [PATCH 1/2] freetube: make compatible with NIXOS_OZONE_WL --- pkgs/applications/video/freetube/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/freetube/default.nix b/pkgs/applications/video/freetube/default.nix index b5a8221b7fdf..ef41f49d7a0f 100644 --- a/pkgs/applications/video/freetube/default.nix +++ b/pkgs/applications/video/freetube/default.nix @@ -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; { From c2cbe752d35e7989c626392480341d9051323363 Mon Sep 17 00:00:00 2001 From: Topi <17724308+prTopi@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:26:49 +0200 Subject: [PATCH 2/2] nixosTests.freetube: mark as broken on aarch64-linux --- nixos/tests/freetube.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/freetube.nix b/nixos/tests/freetube.nix index f285384b68e0..faa534938227 100644 --- a/nixos/tests/freetube.nix +++ b/nixos/tests/freetube.nix @@ -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 = ''