about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorkirillrdy <kirillrdy@gmail.com>2024-02-10 07:20:49 +1100
committerGitHub <noreply@github.com>2024-02-10 07:20:49 +1100
commitd035354673e9a7e6d7e64d2d3b96e076ae98551d (patch)
tree2f28dc8189e9d8f59c437becb48503caa42b3817 /pkgs/applications
parent9fadd15f4d9ea731fcfa15fcd540619d7155862a (diff)
parentc2cbe752d35e7989c626392480341d9051323363 (diff)
Merge pull request #282597 from prTopi/freetube-ozone-patch
freetube: make compatible with NIXOS_OZONE_WL
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/video/freetube/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/video/freetube/default.nix b/pkgs/applications/video/freetube/default.nix
index b5a8221b7fdfc..ef41f49d7a0f2 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; {