Merge pull request #273803 from holmesmr/fix-gerbil-soname-darwin

gerbil: fix soname of libgerbil on darwin
This commit is contained in:
Weijia Wang 2023-12-13 01:12:49 +01:00 committed by GitHub
commit 972446d305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,9 @@ stdenv.mkDerivation rec {
./install.sh
(cd $out/bin ; ln -s ../gerbil/bin/* .)
runHook postInstall
'' + lib.optionalString stdenv.isDarwin ''
libgerbil="$(realpath "$out/gerbil/lib/libgerbil.so")"
install_name_tool -id "$libgerbil" "$libgerbil"
'';
dontStrip = true;