torcs: comply with freedesktop icon specification (#491357)

This commit is contained in:
dish
2026-02-18 21:11:59 +00:00
committed by GitHub
+6 -1
View File
@@ -1,4 +1,5 @@
{
imagemagick,
stdenv,
symlinkJoin,
torcs-without-data,
@@ -20,7 +21,11 @@ let
installTargets = "export datainstall";
postInstall = ''
install -D -m644 Ticon.png $out/share/pixmaps/torcs.png
mkdir -p $out/share/icons/hicolor/64x64/apps
${imagemagick}/bin/magick Ticon.png -resize 64x64 $out/share/icons/hicolor/64x64/apps/torcs.png
substituteInPlace torcs.desktop \
--replace-fail "Icon=torcs.png" "Icon=torcs"
install -D -m644 torcs.desktop $out/share/applications/torcs.desktop
'';