Merge pull request #231952 from aidalgol/zim-icon-fix

This commit is contained in:
Sandro 2023-06-15 11:30:29 +02:00 committed by GitHub
commit 570b69e2b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,20 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 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 # RuntimeError: could not create GtkClipboard object
doCheck = false; doCheck = false;