1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gtk3, makeWrapper }:
3 stdenv.mkDerivation rec {
4 pname = "spotify-tray";
7 src = fetchFromGitHub {
11 sha256 = "sha256-E86rA8cBjy/bI7sZHlT40o7i23PcONXT5GTHEfcaDf0=";
16 name = "fix-building-with-automake-1.16.5.patch";
17 url = "https://github.com/tsmetana/spotify-tray/commit/1305f473ba4a406e907b98c8255f23154f349613.patch";
18 sha256 = "sha256-u2IopfMzNCu2F06RZoJw3OAsRxxZYdIMnKnyb7/KBgk=";
22 nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
24 buildInputs = [ gtk3 ];
27 wrapProgram $out/bin/spotify-tray --set GDK_BACKEND x11
31 homepage = "https://github.com/tsmetana/spotify-tray";
32 description = "Adds a tray icon to the Spotify Linux client application";
33 license = licenses.gpl3Only;
34 platforms = platforms.linux;
36 mainProgram = "spotify-tray";