Merge pull request #292809 from NixyJuppie/spotify-tray-wayland-fix

spotify-tray: fix crash on wayland
This commit is contained in:
Artturin 2024-07-13 23:16:14 +03:00 committed by GitHub
commit 7db833f6e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gtk3 }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gtk3, makeWrapper }:
stdenv.mkDerivation rec {
pname = "spotify-tray";
@ -19,10 +19,14 @@ stdenv.mkDerivation rec {
})
];
nativeBuildInputs = [ autoreconfHook pkg-config ];
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
buildInputs = [ gtk3 ];
postFixup = ''
wrapProgram $out/bin/spotify-tray --set GDK_BACKEND x11
'';
meta = with lib; {
homepage = "https://github.com/tsmetana/spotify-tray";
description = "Adds a tray icon to the Spotify Linux client application";