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, ... }: 2 3 stdenv.mkDerivation rec { 4 pname = "resilio-sync"; ··· 24 dontStrip = true; # Don't strip, otherwise patching the rpaths breaks 25 sourceRoot = "."; 26 27 installPhase = '' 28 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 ''; 33 34 meta = with lib; {
··· 1 + { lib, stdenv, fetchurl, autoPatchelfHook, libxcrypt-legacy }: 2 3 stdenv.mkDerivation rec { 4 pname = "resilio-sync"; ··· 24 dontStrip = true; # Don't strip, otherwise patching the rpaths breaks 25 sourceRoot = "."; 26 27 + nativeBuildInputs = [ 28 + autoPatchelfHook 29 + ]; 30 + 31 + buildInputs = [ 32 + stdenv.cc.libc 33 + libxcrypt-legacy 34 + ]; 35 + 36 installPhase = '' 37 install -D rslsync "$out/bin/rslsync" 38 ''; 39 40 meta = with lib; {