2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, dpkg
|
|
|
|
, libxcb
|
|
|
|
, libGL
|
|
|
|
, nss
|
|
|
|
, libthai
|
|
|
|
, wayland
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2021-02-05 17:12:51 +00:00
|
|
|
, qtvirtualkeyboard
|
|
|
|
, qtwebchannel
|
|
|
|
, qtwebsockets
|
|
|
|
, qtlocation
|
|
|
|
, qtwebengine
|
|
|
|
, autoPatchelfHook
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "insync";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "3.3.5.40925";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://s.insynchq.com/builds/${pname}_${version}-focal_amd64.deb";
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "sha256-lYlG/8d7teX98F5eDxm4EdBfFs7Sz3Td4kKLC6KZqnQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace usr/bin/insync --replace /usr/lib/insync $out/usr/lib/insync
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-02-05 17:12:51 +00:00
|
|
|
libGL
|
|
|
|
libthai
|
|
|
|
libxcb
|
|
|
|
nss
|
|
|
|
qtlocation
|
|
|
|
qtvirtualkeyboard
|
|
|
|
qtwebchannel
|
|
|
|
qtwebengine
|
|
|
|
qtwebsockets
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook dpkg makeWrapper wrapQtAppsHook ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib $out/share
|
|
|
|
cp -R usr/* $out/
|
|
|
|
rm $out/lib/insync/libGLX.so.0
|
|
|
|
rm $out/lib/insync/libQt5*
|
|
|
|
sed -i 's|/usr/lib/insync|/lib/insync|' "$out/bin/insync"
|
|
|
|
wrapQtApp "$out/lib/insync/insync"
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
platforms = ["x86_64-linux"];
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.unfree;
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://www.insynchq.com";
|
|
|
|
description = "Google Drive sync and backup with multiple account support";
|
|
|
|
longDescription = ''
|
|
|
|
Insync is a commercial application that syncs your Drive files to your
|
|
|
|
computer. It has more advanced features than Google's official client
|
|
|
|
such as multiple account support, Google Doc conversion, symlink support,
|
|
|
|
and built in sharing.
|
|
|
|
|
|
|
|
There is a 15-day free trial, and it is a paid application after that.
|
|
|
|
'';
|
2022-10-21 18:38:19 +00:00
|
|
|
# download URL removed
|
|
|
|
broken = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|