diff --git a/pkgs/applications/networking/instant-messengers/skype/default.nix b/pkgs/applications/networking/instant-messengers/skype/default.nix index 2f2dba18e49..5bb2121b1fd 100644 --- a/pkgs/applications/networking/instant-messengers/skype/default.nix +++ b/pkgs/applications/networking/instant-messengers/skype/default.nix @@ -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}