nixpkgs/pkgs/applications/networking/insync/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2017-01-04 09:28:14 +01:00
{ stdenv, fetchurl, makeWrapper }:
stdenv.mkDerivation rec {
name = "insync-${version}";
2017-07-15 10:21:12 +02:00
version = "1.3.17.36167";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
2017-07-15 10:21:12 +02:00
sha256 = "0mvg22psiy4x9g7k1fm9pigz2a70jmin7zg2nfzapfnqjlnrbw3n";
}
else
throw "${name} is not supported on ${stdenv.system}";
2017-01-04 09:28:14 +01: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.
There is a 15-day free trial, and it is a paid application after that.
2017-01-04 09:28:14 +01:00
'';
};
}