openfec: fix runtime error on darwin

This commit is contained in:
Weijia Wang 2022-12-31 08:44:11 +01:00
parent 0ad5b19765
commit 9fcf50f726

View file

@ -27,6 +27,9 @@ stdenv.mkDerivation rec {
find $dev/include -type f -a ! -iname '*.h' -delete
install -D -m755 -t $out/lib ../bin/Release/libopenfec${so}
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libopenfec${so} $out/lib/libopenfec${so}
'' + ''
ln -s libopenfec${so} $out/lib/libopenfec${so}.1
'';