mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
onlyoffice-bin: fix icon location
This commit is contained in:
parent
2f0cac1b2b
commit
59cf5102f0
@ -145,6 +145,13 @@ stdenv.mkDerivation rec {
|
||||
mv usr/share/* $out/share/
|
||||
mv opt/onlyoffice/desktopeditors $out/share
|
||||
|
||||
for f in $out/share/desktopeditors/asc-de-*.png; do
|
||||
size=$(basename "$f" ".png" | cut -d"-" -f3)
|
||||
res="''${size}x''${size}"
|
||||
mkdir -pv "$out/share/icons/hicolor/$res/apps"
|
||||
ln -s "$f" "$out/share/icons/hicolor/$res/apps/onlyoffice-desktopeditors.png"
|
||||
done;
|
||||
|
||||
substituteInPlace $out/bin/onlyoffice-desktopeditors \
|
||||
--replace "/opt/onlyoffice/" "$out/share/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user