git.iko.soy/typeable/nixpkgs
on master help sign in
spotify: fix icons
commitea25afa2cb7032d6dec546b1f61d1272b5f9a2fa authorChristopher Lübbemeier <christopher.luebbemeier@gmail.com> dateMon 25 Jan 2016, 14:13 (11 years ago) parent0c5ad78
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;