summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/aseprite/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/editors/aseprite/default.nix b/pkgs/applications/editors/aseprite/default.nix
index 420829199e14..9a0d1bb5e72c 100644
--- a/pkgs/applications/editors/aseprite/default.nix
+++ b/pkgs/applications/editors/aseprite/default.nix
@@ -53,9 +53,16 @@ stdenv.mkDerivation rec {
     "-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.
-    rm -rf $out/include $out/lib
+    rm -rf "$out"/include "$out"/lib
   '';
 
   enableParallelBuilding = true;