zim: install desktop application icon

This commit is contained in:
Aidan Gauland 2023-05-15 10:28:32 +12:00
parent b9f18832c1
commit d1b239ac5d
No known key found for this signature in database
GPG Key ID: 16E68DD2D0E77C91

View File

@ -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;