aseprite: install desktop icons

This commit is contained in:
Orivej Desh 2017-09-12 04:50:16 +00:00
parent f0483d59f3
commit 247fa20962
1 changed files with 9 additions and 2 deletions

View File

@ -53,9 +53,16 @@ stdenv.mkDerivation rec {
"-DENABLE_TAR=OFF" "-DENABLE_TAR=OFF"
]; ];
postInstall = lib.optionalString unfree '' postInstall = ''
# Install desktop icons.
src="$out/share/aseprite/data/icons"
for size in 16 32 48 64; do
dst="$out"/share/icons/hicolor/"$size"x"$size"
install -Dm644 "$src"/ase"$size".png "$dst"/apps/aseprite.png
install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
done
# Delete unneeded artifacts of bundled libraries. # Delete unneeded artifacts of bundled libraries.
rm -rf $out/include $out/lib rm -rf "$out"/include "$out"/lib
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;