mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
mattermost: use electron instead of deprecated electron_28
(cherry picked from commit 54eef93813
)
This commit is contained in:
parent
24cad53c71
commit
50a41f7bfc
@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, electron_28
|
||||
, electron
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
@ -52,7 +52,7 @@ stdenv.mkDerivation {
|
||||
substituteInPlace $out/share/applications/Mattermost.desktop \
|
||||
--replace /share/mattermost-desktop/mattermost-desktop /bin/mattermost-desktop
|
||||
|
||||
makeWrapper '${lib.getExe electron_28}' $out/bin/${pname} \
|
||||
makeWrapper '${lib.getExe electron}' $out/bin/${pname} \
|
||||
--set-default ELECTRON_IS_DEV 0 \
|
||||
--add-flags $out/share/${pname}/app.asar \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||
|
Loading…
Reference in New Issue
Block a user