mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
epsonscan2: fix not showing icons when built with withGui = true
upstream ico file contains multiple resolutions, those need to be deleted on convert
This commit is contained in:
parent
794d4f89ba
commit
5ea32c66f0
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ stdenv.mkDerivation {
|
|||
+ lib.optionalString withGui ''
|
||||
# The icon file extension is .ico but it's actually a png!
|
||||
mkdir -p $out/share/icons/hicolor/{48x48,128x128}/apps
|
||||
magick $src/Resources/Icons/escan2_app.ico -resize 48x48 $out/share/icons/hicolor/48x48/apps/epsonscan2.png
|
||||
magick $src/Resources/Icons/escan2_app.ico -resize 128x128 $out/share/icons/hicolor/128x128/apps/epsonscan2.png
|
||||
magick $src/Resources/Icons/escan2_app.ico -resize 48x48 -delete 1,2,3 $out/share/icons/hicolor/48x48/apps/epsonscan2.png
|
||||
magick $src/Resources/Icons/escan2_app.ico -resize 128x128 -delete 1,2,3 $out/share/icons/hicolor/128x128/apps/epsonscan2.png
|
||||
''
|
||||
+ lib.optionalString withNonFreePlugins ''
|
||||
ar xf ${bundle}/plugins/epsonscan2-non-free-plugin_*.deb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue