summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2016-02-01 16:51:30 -0600
committerThomas Tuegel <ttuegel@gmail.com>2016-02-01 16:51:30 -0600
commit269630494f50b2800d329b2147b10816a38a58b5 (patch)
treee6d6e6eb0c5bc54886258e7dfb5d0a3a1f8717ea
parentMerge pull request #12708 from jerith666/email-init (diff)
parentspotify: fix icons (diff)
downloadnixpkgs-269630494f50b2800d329b2147b10816a38a58b5.tar.gz
Merge pull request #12745 from christopher-l/spotify
spotify: fix icons
-rw-r--r--pkgs/applications/audio/spotify/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix
index cdfbf2f2b4c7..f345e9710d2f 100644
--- a/pkgs/applications/audio/spotify/default.nix
+++ b/pkgs/applications/audio/spotify/default.nix
@@ -87,7 +87,14 @@ stdenv.mkDerivation {
# Desktop file
mkdir -p "$out/share/applications/"
cp "$out/share/spotify/spotify.desktop" "$out/share/applications/"
- sed -i "s|Icon=.*|Icon=$out/share/spotify/Icons/spotify-linux-512.png|" "$out/share/applications/spotify.desktop"
+
+ # Icons
+ for i in 16 22 24 32 48 64 128 256 512; do
+ ixi="$i"x"$i"
+ mkdir -p "$out/share/icons/hicolor/$ixi/apps"
+ ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
+ "$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
+ done
'';
dontStrip = true;