resilio-sync: fix build with libxcrypt and use autoPatchelfHook

+10 -4
+10 -4
pkgs/applications/networking/resilio-sync/default.nix
··· 1 - { lib, stdenv, fetchurl, libxcrypt, ... }: 1 + { lib, stdenv, fetchurl, autoPatchelfHook, libxcrypt-legacy }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "resilio-sync"; ··· 24 24 dontStrip = true; # Don't strip, otherwise patching the rpaths breaks 25 25 sourceRoot = "."; 26 26 27 + nativeBuildInputs = [ 28 + autoPatchelfHook 29 + ]; 30 + 31 + buildInputs = [ 32 + stdenv.cc.libc 33 + libxcrypt-legacy 34 + ]; 35 + 27 36 installPhase = '' 28 37 install -D rslsync "$out/bin/rslsync" 29 - patchelf \ 30 - --interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" \ 31 - --set-rpath ${lib.makeLibraryPath [ stdenv.cc.libc libxcrypt ]} "$out/bin/rslsync" 32 38 ''; 33 39 34 40 meta = with lib; {