git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12745 from christopher-l/spotify

spotify: fix icons

commit269630494f50b2800d329b2147b10816a38a58b5 authorThomas Tuegel <ttuegel@gmail.com> dateMon 1 Feb 2016, 16:51 (11 years ago) parenta7d2947ea25afa
1 file changed+8−1
pkgs/applications/audio/spotify/default.nix+8−1
pkgs/applications/audio/spotify/default.nix+8−1
@@ -87,7 +87,14 @@ stdenv.mkDerivation {
8787 # Desktop file
8888 mkdir -p "$out/share/applications/"
8989 cp "$out/share/spotify/spotify.desktop" "$out/share/applications/"
90− sed -i "s|Icon=.*|Icon=$out/share/spotify/Icons/spotify-linux-512.png|" "$out/share/applications/spotify.desktop"
90+
91+ # Icons
92+ for i in 16 22 24 32 48 64 128 256 512; do
93+ ixi="$i"x"$i"
94+ mkdir -p "$out/share/icons/hicolor/$ixi/apps"
95+ ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
96+ "$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
97+ done
9198 '';
9299
93100 dontStrip = true;