armcord: wayland screen sharing support

removed duplicite "''${gappsWrapperArgs[@]}"
This commit is contained in:
dev-null-undefined 2023-01-31 04:58:52 +01:00 committed by pennae
parent 42b3a6354f
commit 489843eab7

View File

@ -33,6 +33,8 @@
, systemd
, xdg-utils
, xorg
, wayland
, pipewire
}:
stdenv.mkDerivation rec {
@ -97,6 +99,8 @@ stdenv.mkDerivation rec {
xorg.libXScrnSaver
xorg.libxshmfence
xorg.libXtst
wayland
pipewire
];
sourceRoot = ".";
@ -114,9 +118,9 @@ stdenv.mkDerivation rec {
makeWrapper $out/opt/ArmCord/armcord $out/bin/armcord \
"''${gappsWrapperArgs[@]}" \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WebRTCPipeWireCapturer }}" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}" \
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
"''${gappsWrapperArgs[@]}"
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
# Fix desktop link
substituteInPlace $out/share/applications/armcord.desktop \