From 9dd7586b31b90da9e4babcd65a6f7278c275d8d5 Mon Sep 17 00:00:00 2001 From: pancaek <20342389+pancaek@users.noreply.github.com> Date: Tue, 3 Mar 2026 18:43:00 -0800 Subject: [PATCH] pattypan: move icon to spec-compliant location --- pkgs/by-name/pa/pattypan/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/pa/pattypan/package.nix b/pkgs/by-name/pa/pattypan/package.nix index 62c2fba5494c..65aa30eff298 100644 --- a/pkgs/by-name/pa/pattypan/package.nix +++ b/pkgs/by-name/pa/pattypan/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, ant, jdk, + imagemagick, makeWrapper, wrapGAppsHook3, makeDesktopItem, @@ -31,6 +32,7 @@ stdenv.mkDerivation (finalAttrs: { wrapGAppsHook3 copyDesktopItems stripJavaArchivesHook + imagemagick ]; dontWrapGApps = true; @@ -45,8 +47,9 @@ stdenv.mkDerivation (finalAttrs: { installPhase = '' runHook preInstall + mkdir -p $out/share/icons/hicolor/96x96/apps install -Dm644 pattypan.jar -t $out/share/pattypan - install -Dm644 src/pattypan/resources/logo.png $out/share/pixmaps/pattypan.png + magick src/pattypan/resources/logo.png -resize 96x96 $out/share/icons/hicolor/96x96/apps/pattypan.png runHook postInstall '';