[Nix-dev] Re: mysql libraries

Yury G. Kudryashov urkud+nix at ya.ru
Thu Sep 16 06:44:46 CEST 2010


roconnor at theorem.ca wrote:

> The mysql derivation builds it's libraries in
> 
> ...mysql-5.0.77/lib/mysql
> 
> rather than in
> 
> ...mysql-5.0.77/lib
> 
> This means that when I set mysql as a build input the NIX_LDFLAGS gets a
> -L...mysql-5.0.77/lib and thus cannot find the libraries which are
> actually located in -L...mysql-5.0.77/lib/mysql
> 
> My workaround is to export LDFLAGS="${mysql}/lib/mysql" in my preconfigure
> phase.  This is the same thing that the opendbx derivation does.  This
> works, but it is kinda a pain.  For example propagateBuildInputs =
> [mysql]; won't really do anything useful.
It's better to ask mysql_config for gcc flags.
> 
> Wouldn't it be better if we had mysql build its libs into the $out/lib/
> directory instead of the $out/lib/mysql/ directory?
> 





More information about the nix-dev mailing list