diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak/default.nix new file mode 100644 index 000000000000..90d8ea553318 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/spideroak/default.nix @@ -0,0 +1,60 @@ +{ stdenv, fetchurl, makeWrapper, patchelf +, fontconfig, freetype, glib, libICE, libSM +, libX11, libXext, libXrender, zlib +}: + +let + sha256 = "6d6ca2b383bcc81af1217c696eb77864a2b6db7428f4b5bde5b5913ce705eec5"; + + ldpath = stdenv.lib.makeLibraryPath [ + fontconfig freetype glib libICE libSM + libX11 libXext libXrender zlib + ]; + + version = "7.5.0"; + +in stdenv.mkDerivation { + pname = "spideroak"; + inherit version; + + src = fetchurl { + name = "SpiderOakONE-${version}-slack_tar_x64.tgz"; + url = "https://spideroak.com/release/spideroak/slack_tar_x64"; + inherit sha256; + }; + + sourceRoot = "."; + + unpackCmd = "tar -xzf $curSrc"; + + installPhase = '' + mkdir "$out" + cp -r "./"* "$out" + mkdir "$out/bin" + rm "$out/usr/bin/SpiderOakONE" + rmdir $out/usr/bin || true + mv $out/usr/share $out/ + + rm -f $out/opt/SpiderOakONE/lib/libz* + + patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux-x86-64.so.2 \ + "$out/opt/SpiderOakONE/lib/SpiderOakONE" + + 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/ \ + --set SpiderOak_EXEC_SCRIPT $out/bin/spideroak + + sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop + ''; + + nativeBuildInputs = [ patchelf makeWrapper ]; + + meta = { + homepage = "https://spideroak.com"; + description = "Secure online backup and sychronization"; + license = stdenv.lib.licenses.unfree; + maintainers = with stdenv.lib.maintainers; [ amorsillo ]; + platforms = stdenv.lib.platforms.linux; + }; +} |