This commit is contained in:
foosinn 2022-02-13 00:31:58 +01:00
parent 4146b5aece
commit 2e10a00830
32 changed files with 2944 additions and 2163 deletions

View file

@ -1,22 +1,14 @@
{ stdenv
, buildFHSUserEnv
, fetchurl
, lib
, pkgs
, writeScript
}:
{ stdenv, buildFHSUserEnv, fetchurl, lib, pkgs, writeScript }:
let
version = "4.3.3";
release = "4469";
cloudstation = stdenv.mkDerivation rec {
name = "cloudstation-unpack";
buildInputs = [
pkgs.dpkg
pkgs.qt5.qtbase
];
buildInputs = [ pkgs.dpkg pkgs.qt5.qtbase ];
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";
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";
};
unpackPhase = ''
@ -35,31 +27,32 @@ let
dontWrapQtApps = true;
};
in buildFHSUserEnv {
name = "cloudstation";
targetPkgs = pkgs: with pkgs; with xorg; [
cloudstation
curl
dbus_libs
fontconfig
freetype
glib
libICE
libSM
libX11
libxcb
openssl
qt5.qtbase
qt5.qttools
qt5.qtwayland
qt5.qtx11extras
sqlite
stdenv.cc.cc.lib
xkeyboard_config
zlib
];
targetPkgs = pkgs:
with pkgs;
with xorg; [
cloudstation
curl
dbus_libs
fontconfig
freetype
glib
libICE
libSM
libX11
libxcb
openssl
qt5.qtbase
qt5.qttools
qt5.qtwayland
qt5.qtx11extras
sqlite
stdenv.cc.cc.lib
xkeyboard_config
zlib
];
runScript = writeScript "cloudstation" ''
#!/usr/bin/env bash