2 days of work
This commit is contained in:
parent
ad427500ad
commit
f8e261ad07
18 changed files with 391 additions and 32 deletions
97
packages/cloudstation.nix
Normal file
97
packages/cloudstation.nix
Normal file
|
@ -0,0 +1,97 @@
|
|||
{ stdenv
|
||||
, autoPatchelfHook
|
||||
, dbus_libs
|
||||
, dpkg
|
||||
, fetchurl
|
||||
, fontconfig
|
||||
, freetype
|
||||
, glib
|
||||
, libICE
|
||||
, libSM
|
||||
, xorg
|
||||
, openssl_1_0_2
|
||||
, openssl
|
||||
, libX11
|
||||
, makeWrapper
|
||||
, sqlite
|
||||
, wrapQtAppsHook
|
||||
, xkeyboard_config
|
||||
, zlib
|
||||
, curl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cloudstation";
|
||||
version = "4.3.3";
|
||||
release = "4469";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://global.download.synology.com/download/Tools/CloudStationDrive/${version}-${release}/Ubuntu/Installer/x86_64/synology-cloud-station-drive-${release}.x86_64.deb";
|
||||
sha256 = "0v84yb70knmmjzp7lyn6jgy5bnfsfd47wmqh29phybqg4zk3d47j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
wrapQtAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
dbus_libs
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
libICE
|
||||
libSM
|
||||
libX11
|
||||
sqlite
|
||||
stdenv.cc.cc.lib
|
||||
zlib
|
||||
openssl_1_0_2
|
||||
xorg.libxcb
|
||||
curl
|
||||
];
|
||||
|
||||
ldpath = stdenv.lib.makeLibraryPath [
|
||||
dbus_libs
|
||||
fontconfig
|
||||
freetype
|
||||
glib
|
||||
libICE
|
||||
libSM
|
||||
libX11
|
||||
sqlite
|
||||
stdenv.cc.cc.lib
|
||||
zlib
|
||||
openssl_1_0_2
|
||||
openssl
|
||||
xorg.libxcb
|
||||
curl
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x $src .
|
||||
find
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -R opt $out
|
||||
chmod +x $out/opt/Synology/CloudStation/lib/*
|
||||
|
||||
#ln -s $out/opt/Synology/CloudStation/bin/launcher $out/bin/cloudstation
|
||||
makeWrapper \
|
||||
$out/opt/Synology/CloudStation/bin/launcher \
|
||||
$out/bin/cloudstation \
|
||||
--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}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.synology.com/de-de/support/download/RS815#utilities";
|
||||
description = "Synology Cloud Station Drive";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foosinn ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue