resilio-sync: fix build with libxcrypt

This commit is contained in:
Lan Tian
2022-10-25 02:07:14 -05:00
parent 8e22463268
commit dccf26609c
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, ... }:
{ lib, stdenv, fetchurl, libxcrypt, ... }:
stdenv.mkDerivation rec {
pname = "resilio-sync";
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
install -D rslsync "$out/bin/rslsync"
patchelf \
--interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath ${lib.makeLibraryPath [ stdenv.cc.libc ]} "$out/bin/rslsync"
--set-rpath ${lib.makeLibraryPath [ stdenv.cc.libc libxcrypt ]} "$out/bin/rslsync"
'';
meta = with lib; {