2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, autoPatchelfHook }:
|
2017-01-04 09:28:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "insync";
|
2019-06-10 17:09:59 +02:00
|
|
|
version = "1.5.7.37371";
|
2017-06-01 01:38:41 +02:00
|
|
|
src =
|
2018-08-20 21:11:29 +02:00
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
2017-06-01 01:38:41 +02:00
|
|
|
fetchurl {
|
|
|
|
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
|
2019-06-10 17:09:59 +02:00
|
|
|
sha256 = "1cm3q6y2crw6pcsvh21sbkmh1hin7xl4fyslc96nbyql8rxsky5n";
|
2017-06-01 01:38:41 +02:00
|
|
|
}
|
|
|
|
else
|
2019-08-15 14:41:18 +02:00
|
|
|
throw "${pname}-${version} is not supported on ${stdenv.hostPlatform.system}";
|
2017-01-04 09:28:14 +01:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2020-07-07 16:30:59 +02:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
2017-01-04 09:28:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" client/insync-portable
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a client $out/client
|
|
|
|
makeWrapper $out/client/insync-portable $out/bin/insync --set LC_TIME C
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = ["x86_64-linux"];
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = [ lib.maintainers.benley ];
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.insynchq.com";
|
2017-01-04 09:28:14 +01:00
|
|
|
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.
|
2017-01-10 02:58:04 +01:00
|
|
|
|
|
|
|
There is a 15-day free trial, and it is a paid application after that.
|
2017-01-04 09:28:14 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|