From 247fa20962ec3c085dad0d53f50cbef46a01f30c Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Tue, 12 Sep 2017 04:50:16 +0000 Subject: aseprite: install desktop icons --- pkgs/applications/editors/aseprite/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pkgs/applications/editors') 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; -- cgit 1.4.1