skype: fix rpath broken by closure-size merge

This commit is contained in:
Alexander V. Nikolaev 2016-04-20 22:42:52 +03:00
parent fda6a5ff9d
commit 2ddc17b930

View File

@ -38,13 +38,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/{libexec/skype/,bin}
cp -r * $out/libexec/skype/
fullPath=
for i in $nativeBuildInputs; do
fullPath=$fullPath''${fullPath:+:}$i/lib
done
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$fullPath" $out/libexec/skype/skype
--set-rpath "${lib.makeLibraryPath buildInputs}" $out/libexec/skype/skype
cat > $out/bin/skype << EOF
#!${stdenv.shell}