2024-03-02 15:02:44 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gtk3, makeWrapper }:
|
2021-12-18 14:49:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spotify-tray";
|
|
|
|
version = "1.3.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsmetana";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-E86rA8cBjy/bI7sZHlT40o7i23PcONXT5GTHEfcaDf0=";
|
|
|
|
};
|
|
|
|
|
2022-01-30 08:00:17 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-building-with-automake-1.16.5.patch";
|
|
|
|
url = "https://github.com/tsmetana/spotify-tray/commit/1305f473ba4a406e907b98c8255f23154f349613.patch";
|
|
|
|
sha256 = "sha256-u2IopfMzNCu2F06RZoJw3OAsRxxZYdIMnKnyb7/KBgk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-03-02 15:02:44 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
|
2021-12-18 14:49:55 +00:00
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
2024-03-02 15:02:44 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/spotify-tray --set GDK_BACKEND x11
|
|
|
|
'';
|
|
|
|
|
2021-12-18 14:49:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tsmetana/spotify-tray";
|
|
|
|
description = "Adds a tray icon to the Spotify Linux client application";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "spotify-tray";
|
2021-12-18 14:49:55 +00:00
|
|
|
};
|
|
|
|
}
|