Unverified Commit ada0c923 authored by Lily Foster's avatar Lily Foster Committed by GitHub
Browse files

Merge pull request #262343 from eclairevoyant/webcord

webcord: lock ozone wayland behind NIXOS_OZONE_WL envvar
parents 75a52265 cf002f1e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ buildNpmPackage rec {
    makeWrapper '${lib.getExe electron_27}' $out/bin/webcord \
      --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/webcord \
      --suffix PATH : "${binPath}" \
      --add-flags "--ozone-platform-hint=auto" \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
      --add-flags $out/lib/node_modules/webcord/

    runHook postInstall
@@ -88,7 +88,7 @@ buildNpmPackage rec {
    changelog = "https://github.com/SpacingBat3/WebCord/releases/tag/v${version}";
    license = lib.licenses.mit;
    mainProgram = "webcord";
    maintainers = with lib.maintainers; [ huantian ];
    maintainers = with lib.maintainers; [ eclairevoyant huantian ];
    platforms = lib.platforms.linux;
  };
}