1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

spideroak: fix crash due to zlib version mismatch

Fixes #23960
This commit is contained in:
Neil Mayhew 2017-09-16 11:07:13 -06:00 committed by Neil Mayhew
parent afc0218ecd
commit 4d7dd8169c

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, makeWrapper, glib
, fontconfig, patchelf, libXext, libX11
, freetype, libXrender
, freetype, libXrender, zlib
}:
let
@ -17,7 +17,7 @@ let
else throw "Spideroak client for: ${stdenv.system} not supported!";
ldpath = stdenv.lib.makeLibraryPath [
glib fontconfig libXext libX11 freetype libXrender
glib fontconfig libXext libX11 freetype libXrender zlib
];
version = "6.0.1";
@ -43,6 +43,8 @@ in stdenv.mkDerivation {
rmdir $out/usr/bin || true
mv $out/usr/share $out/
rm -f $out/opt/SpiderOakONE/lib/libz*
patchelf --set-interpreter ${stdenv.glibc.out}/lib/${interpreter} \
"$out/opt/SpiderOakONE/lib/SpiderOakONE"