From d1b239ac5dc9d1a0bc9e8f5ebf3653c293a9e8ea Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Mon, 15 May 2023 10:28:32 +1200 Subject: [PATCH] zim: install desktop application icon --- pkgs/applications/office/zim/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/office/zim/default.nix b/pkgs/applications/office/zim/default.nix index c20c9449ae84..c9e787f6d9a7 100644 --- a/pkgs/applications/office/zim/default.nix +++ b/pkgs/applications/office/zim/default.nix @@ -27,6 +27,20 @@ python3Packages.buildPythonApplication rec { makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; + postInstall = '' + ( + cd icons + for img in *.{png,svg}; do + size=''${img#zim} + size=''${size%.png} + size=''${size%.svg} + dimensions="''${size}x''${size}" + mkdir -p $out/share/icons/hicolor/$dimensions/apps + cp $img $out/share/icons/hicolor/$dimensions/apps/${pname}.png + done + ) + ''; + # RuntimeError: could not create GtkClipboard object doCheck = false;