Closed deliciouslytyped closed 1 year ago
I had this issue as well on lib.version
"19.09.976.c75de8bc12c".
I wasn't able to build either RMySQL
or RMariaDB
. In the latter case, it looks like RMariaDB
needs to have patchShebangs configure
in its preConfigure
stage. It also seemed to me that it wasn't getting the correct libraries passed to it.
You can fix it with an overlay like this:
self: super:
{
rPackages = (super.rPackages or {}) // {
RMariaDB = super.rPackages.RMariaDB.overrideDerivation (attrs: {
nativeBuildInputs = [ self.mariadb.connector-c.dev ] ++ attrs.nativeBuildInputs;
preConfigure = "patchShebangs configure";
});
RMySQL = super.rPackages.RMySQL.overrideDerivation (attrs: {
nativeBuildInputs = [ self.mysql.connector-c.dev ] ++ attrs.nativeBuildInputs;
});
};
}
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
In the meantime (20.09 at least), you have to use self.mariadb-connector-c.dev
instead of self.mariadb.connector-c.dev
.
I marked this as stale due to inactivity. → More info
RMariaDB probably still fails to build, as there's no fix in r-modules/default.nix
. I just need to port my fix from 19.09 to master.
For the record on recent Nixpkgs versions, RMariaDB
package correctly builds. I think we can close this issue now.