resilio-sync: fix build with libxcrypt

This commit is contained in:
Lan Tian 2022-10-25 02:06:40 -05:00
parent 8e22463268
commit dccf26609c
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -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; {