biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / spotify-tray / default.nix
blob7eb84702be0cde023a692255c9c6cbd72e1ba8c3
1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gtk3, makeWrapper }:
3 stdenv.mkDerivation rec {
4   pname = "spotify-tray";
5   version = "1.3.2";
7   src = fetchFromGitHub {
8     owner = "tsmetana";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-E86rA8cBjy/bI7sZHlT40o7i23PcONXT5GTHEfcaDf0=";
12   };
14   patches = [
15     (fetchpatch {
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=";
19     })
20   ];
22   nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
24   buildInputs = [ gtk3 ];
26   postFixup = ''
27     wrapProgram $out/bin/spotify-tray --set GDK_BACKEND x11
28   '';
30   meta = with lib; {
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;
35     maintainers = [ ];
36     mainProgram = "spotify-tray";
37   };