tidal-hifi: generate hicolor icon set and use it in .desktop file (#193186)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
660954601c
commit
b2c770b993
@ -18,6 +18,7 @@
|
|||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
|
, imagemagick
|
||||||
, libappindicator-gtk3
|
, libappindicator-gtk3
|
||||||
, libdbusmenu
|
, libdbusmenu
|
||||||
, libdrm
|
, libdrm
|
||||||
@ -60,6 +61,7 @@ stdenv.mkDerivation rec {
|
|||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
glib
|
glib
|
||||||
gtk3
|
gtk3
|
||||||
|
imagemagick
|
||||||
pango
|
pango
|
||||||
systemd
|
systemd
|
||||||
mesa # for libgbm
|
mesa # for libgbm
|
||||||
@ -106,8 +108,15 @@ stdenv.mkDerivation rec {
|
|||||||
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
|
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
|
||||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}" \
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}" \
|
||||||
"''${gappsWrapperArgs[@]}"
|
"''${gappsWrapperArgs[@]}"
|
||||||
substituteInPlace $out/share/applications/tidal-hifi.desktop --replace \
|
substituteInPlace $out/share/applications/tidal-hifi.desktop \
|
||||||
"/opt/tidal-hifi/tidal-hifi" "tidal-hifi"
|
--replace \ "/opt/tidal-hifi/tidal-hifi" "tidal-hifi" \
|
||||||
|
--replace "/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png" "tidal-hifi.png"
|
||||||
|
|
||||||
|
for size in 48 64 128 256 512; do
|
||||||
|
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/
|
||||||
|
convert $out/share/icons/hicolor/0x0/apps/tidal-hifi.png \
|
||||||
|
-resize ''${size}x''${size} $out/share/icons/hicolor/''${size}x''${size}/apps/tidal-hifi.png
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user