nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 51 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 autoreconfHook, 7 pkg-config, 8 gtk3, 9 makeWrapper, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "spotify-tray"; 14 version = "1.3.2"; 15 16 src = fetchFromGitHub { 17 owner = "tsmetana"; 18 repo = "spotify-tray"; 19 rev = "v${version}"; 20 sha256 = "sha256-E86rA8cBjy/bI7sZHlT40o7i23PcONXT5GTHEfcaDf0="; 21 }; 22 23 patches = [ 24 (fetchpatch { 25 name = "fix-building-with-automake-1.16.5.patch"; 26 url = "https://github.com/tsmetana/spotify-tray/commit/1305f473ba4a406e907b98c8255f23154f349613.patch"; 27 sha256 = "sha256-u2IopfMzNCu2F06RZoJw3OAsRxxZYdIMnKnyb7/KBgk="; 28 }) 29 ]; 30 31 nativeBuildInputs = [ 32 autoreconfHook 33 pkg-config 34 makeWrapper 35 ]; 36 37 buildInputs = [ gtk3 ]; 38 39 postFixup = '' 40 wrapProgram $out/bin/spotify-tray --set GDK_BACKEND x11 41 ''; 42 43 meta = with lib; { 44 homepage = "https://github.com/tsmetana/spotify-tray"; 45 description = "Adds a tray icon to the Spotify Linux client application"; 46 license = licenses.gpl3Only; 47 platforms = platforms.linux; 48 maintainers = [ ]; 49 mainProgram = "spotify-tray"; 50 }; 51}