mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "insync-${version}";
|
|
version = "1.3.13.36129";
|
|
src = fetchurl {
|
|
url = "http://s.insynchq.com/builds/insync-portable_${version}_amd64.tar.bz2";
|
|
sha256 = "18d8ww529nvhwcl5k31qmkzb83k9753ics0dw64w202r8vwbm3cd";
|
|
};
|
|
|
|
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.
|
|
'';
|
|
};
|
|
}
|