mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
zim: install desktop application icon
This commit is contained in:
parent
b9f18832c1
commit
d1b239ac5d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user