Merge pull request #296173 from eclairevoyant/webcord

webcord: 4.7.1 -> 4.8.0
This commit is contained in:
Pol Dellaiera 2024-03-15 22:08:51 +01:00 committed by GitHub
commit b9acc39723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,23 +7,23 @@
, libpulseaudio
, libnotify
, xdg-utils
, electron_28
, electron_29
, makeDesktopItem
, nix-update-script
}:
buildNpmPackage rec {
pname = "webcord";
version = "4.7.1";
version = "4.8.0";
src = fetchFromGitHub {
owner = "SpacingBat3";
repo = "WebCord";
rev = "v${version}";
hash = "sha256-JzKXIdXR/C3HRbpmSUq3qXYpLnVQjIY/uO+wbt1k2jI=";
hash = "sha256-x9Ejb8yxgQhlEfUUfoqbgSffNNtOoFeAyb3OISR+Jz4=";
};
npmDepsHash = "sha256-KbMoM1zYOjX2Dwu6DJZLyezRx78AC9piPw3xsX3Kb3I=";
npmDepsHash = "sha256-7H4I4vKygMgsPh+OvZZGhpkoQQu1a51yUTwEPJSBM18=";
nativeBuildInputs = [
copyDesktopItems
@ -61,7 +61,7 @@ buildNpmPackage rec {
install -Dm644 sources/assets/icons/app.png $out/share/icons/hicolor/256x256/apps/webcord.png
# Add xdg-utils to path via suffix, per PR #181171
makeWrapper '${lib.getExe electron_28}' $out/bin/webcord \
makeWrapper '${lib.getExe electron_29}' $out/bin/webcord \
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/webcord \
--suffix PATH : "${binPath}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \