discount: fix up dylib paths on darwin

This commit is contained in:
Fred Alger 2023-08-25 19:26:20 -04:00
parent 95b000c69e
commit c81ba0d29c

View File

@ -26,7 +26,10 @@ stdenv.mkDerivation rec {
doCheck = true;
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libmarkdown.dylib $out/lib/libmarkdown.dylib
install_name_tool -id "$out/lib/libmarkdown.dylib" "$out/lib/libmarkdown.dylib"
for exe in $out/bin/*; do
install_name_tool -change libmarkdown.dylib "$out/lib/libmarkdown.dylib" "$exe"
done
'';
meta = with lib; {