dirty fix for cloudstation
This commit is contained in:
parent
0f390344df
commit
d39c1a3622
1 changed files with 16 additions and 1 deletions
|
@ -71,7 +71,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x $src .
|
||||
find
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
@ -86,6 +85,22 @@ stdenv.mkDerivation rec {
|
|||
--set QT_PLUGIN_PATH $out/opt/Synology/CloudStationBackup/lib/plugins/platforms \
|
||||
--set QT_XKB_CONFIG_ROOT ${xkeyboard_config}/share/X11/xkb \
|
||||
--set LD_LIBRARY_PATH $out/opt/Synology/CloudStation/lib:${ldpath}
|
||||
|
||||
cat >> $out/bin/usercloudstation <<EOF
|
||||
export QT_PLUGIN_PATH="$out/opt/Synology/CloudStationBackup/lib/plugins/platforms"
|
||||
export QT_XKB_CONFIG_ROOT="${xkeyboard_config}/share/X11/xkb"
|
||||
export LD_LIBRARY_PATH="~/.CloudStation/CloudStation.app/lib/:$out/opt/Synology/CloudStation/lib:${ldpath}"
|
||||
|
||||
bins="cloud-drive-auto-updater cloud-drive-connect cloud-drive-daemon cloud-drive-ui"
|
||||
for file in $bins; do
|
||||
nix-shell \
|
||||
--command "autoPatchelf ~/.CloudStation/CloudStation.app/bin/$file" \
|
||||
-p patchelf autoPatchelfHook
|
||||
done
|
||||
|
||||
QT_QPA_PLATFORM=xcb exec /home/stefan/.CloudStation/CloudStation.app/bin/cloud-drive-ui
|
||||
EOF
|
||||
chmod +x $out/bin/usercloudstation
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue