Merge pull request #220723 from wegank/libamplsolver-darwin

libamplsolver: fix runtime error on darwin
This commit is contained in:
Aaron Andersen 2023-03-15 17:47:16 -04:00 committed by GitHub
commit a1367682be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
install -D -m 0644 *${stdenv.hostPlatform.extensions.sharedLibrary}* -t $out/lib
install -D -m 0644 *.a -t $out/lib
popd
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libamplsolver.dylib $out/lib/libamplsolver.dylib
'' + ''
runHook postInstall
'';