forked from mirrors/nixpkgs
spotify: fix icons
This commit is contained in:
parent
0c5ad78c18
commit
ea25afa2cb
|
@ -87,7 +87,14 @@ stdenv.mkDerivation {
|
||||||
# Desktop file
|
# Desktop file
|
||||||
mkdir -p "$out/share/applications/"
|
mkdir -p "$out/share/applications/"
|
||||||
cp "$out/share/spotify/spotify.desktop" "$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;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in a new issue