changed icon folder

This commit is contained in:
Kristian Krsnik 2024-01-25 15:24:05 +01:00
parent b2f8e566b7
commit 5ee613acf3
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -45,16 +45,18 @@
}; };
extraInstallCommands = '' extraInstallCommands = ''
mkdir -p $out/share/icons/ mkdir -p $out/share/pixmaps/
ln -s "${desktopItem}/share/applications" $out/share/applications ln -s "${desktopItem}/share/applications" $out/share/applications
for dimension in 128 256 512; do ln -s "${icon}" $out/share/pixmaps/${name}.png
dimensions=''${dimension}x''${dimension}
mkdir -p $out/share/icons/hicolor/$dimensions/apps
"${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png # for dimension in 128 256 512; do
done # dimensions=''${dimension}x''${dimension}
# mkdir -p $out/share/icons/hicolor/$dimensions/apps
# "${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
# done
''; '';
}; };
}; };