In the MySQL derivation, there is a postInstall
that does some stuff I don’t understand:
postInstall = ''
moveToOutput "lib/*.a" $static
ln -s libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libmysqlclient_r${stdenv.hostPlatform.extensions.sharedLibrary}
'';
I’ve walked through the git blame
and looked at other derivations with similar stanzas, but I can’t quite seem to understand why this is here.
What is the intention of this stanza? Why does nix need it, while something like Homebrew does not? What does it accomplish?