forked from apeyroux/tresorit.nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
43 lines (34 loc) · 1.03 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{}:
with import <nixpkgs> {};
stdenv.mkDerivation rec {
version = "3.5.852.1550";
name = "tresorit-${version}";
src = fetchurl {
url = https://installerstorage.blob.core.windows.net/public/install/tresorit_installer.run;
sha256 = "18507prr228q0csfqri4k9yiyzmrinzx5rxc67acvf710qzsqn6r";
};
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ xorg.libXext
xorg.libxcb
xorg.libX11
fuse
libGL ];
dontBuild = true;
dontConfigure = true;
dontMake = true;
unpackPhase = ''
tail -n+94 $src | tar xz -C $TMP
'';
installPhase = ''
mkdir -p $out/bin
cp -rf $TMP/tresorit_x64/* $out/bin/
rm $out/bin/uninstall.sh
'';
meta = with stdenv.lib; {
description = "Tresorit is the ultra-secure place in the cloud to store, sync and share files easily from anywhere, anytime.";
homepage = https://tresorit.com;
license = licenses.unfree;
platforms = platforms.linux;
maintainers = [ maintainers.apeyroux ];
};
}