2017-01-04 08:28:14 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "insync-${version}";
|
2018-12-27 17:06:25 +00:00
|
|
|
version = "1.5.5.37367";
|
2017-06-01 00:38:41 +01:00
|
|
|
src =
|
2018-08-20 20:11:29 +01:00
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
2017-06-01 00:38:41 +01:00
|
|
|
fetchurl {
|
|
|
|
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
|
2018-12-27 17:06:25 +00:00
|
|
|
sha256 = "1yz8l8xjr0pm30hvv4w59wzs569xzkpn8lv12pyl82r1l16h5zp3";
|
2017-06-01 00:38:41 +01:00
|
|
|
}
|
|
|
|
else
|
2018-08-20 20:11:29 +01:00
|
|
|
throw "${name} is not supported on ${stdenv.hostPlatform.system}";
|
2017-01-04 08:28:14 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
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"];
|
|
|
|
license = stdenv.lib.licenses.unfree;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.benley ];
|
|
|
|
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.
|
2017-01-10 01:58:04 +00:00
|
|
|
|
|
|
|
There is a 15-day free trial, and it is a paid application after that.
|
2017-01-04 08:28:14 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|