torcs: comply with freedesktop icon specification

This commit is contained in:
Hythera
2026-02-17 16:38:57 +01:00
parent b34918f839
commit e98ad7228e
+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
'';