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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, patchelf
2017-09-16 17:07:38 +00:00
, fontconfig, freetype, glib, libICE, libSM
, libX11, libXext, libXrender, zlib
2014-07-18 20:21:48 +00:00
}:
let
sha256 = "6d6ca2b383bcc81af1217c696eb77864a2b6db7428f4b5bde5b5913ce705eec5";
2014-07-18 20:21:48 +00:00
2021-01-15 13:21:58 +00:00
ldpath = lib.makeLibraryPath [
2017-09-16 17:07:38 +00:00
fontconfig freetype glib libICE libSM
libX11 libXext libXrender zlib
2014-07-18 20:21:48 +00:00
];
version = "7.5.0";
2014-07-18 20:21:48 +00:00
in stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "spideroak";
inherit version;
2014-07-18 20:21:48 +00:00
src = fetchurl {
name = "SpiderOakONE-${version}-slack_tar_x64.tgz";
url = "https://spideroak.com/release/spideroak/slack_tar_x64";
2014-07-18 20:21:48 +00:00
inherit sha256;
};
sourceRoot = ".";
unpackCmd = "tar -xzf $curSrc";
installPhase = ''
mkdir "$out"
2014-07-18 20:21:48 +00:00
cp -r "./"* "$out"
mkdir "$out/bin"
rm "$out/usr/bin/SpiderOakONE"
rmdir $out/usr/bin || true
mv $out/usr/share $out/
2014-07-18 20:21:48 +00:00
rm -f $out/opt/SpiderOakONE/lib/libz*
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \
"$out/opt/SpiderOakONE/lib/SpiderOakONE"
2014-07-18 20:21:48 +00:00
RPATH=$out/opt/SpiderOakONE/lib:${ldpath}
makeWrapper $out/opt/SpiderOakONE/lib/SpiderOakONE $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \
--set QT_PLUGIN_PATH $out/opt/SpiderOakONE/lib/plugins/ \
2014-07-18 20:21:48 +00:00
--set SpiderOak_EXEC_SCRIPT $out/bin/spideroak
sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop
2014-07-18 20:21:48 +00:00
'';
nativeBuildInputs = [ patchelf makeWrapper ];
2014-07-18 20:21:48 +00:00
meta = {
homepage = "https://spideroak.com";
2014-07-18 20:21:48 +00:00
description = "Secure online backup and sychronization";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
2021-01-15 13:21:58 +00:00
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ amorsillo ];
platforms = lib.platforms.linux;
2014-07-18 20:21:48 +00:00
};
}