Conversation
|
Test builds are running at http://hydra.cryp.to/jobset/nixpkgs/r-packages. |
|
The packages I suppose this should be added in the overrides file? |
|
The file name Also, the file |
|
I cherry-picked the commit that adds udunits in 34e714c. If you have the chance, please rebase this pull request relative to the current |
There was a problem hiding this comment.
The configureFlags include --with-udunits, but the library isn't passed as a build input. I'm not sure whether that was done intentionally?
There was a problem hiding this comment.
This is not intentional. Building UDUNITS with older version of NetCDF required this option, but UDUNITS is now a separate package, so that this option is noop now. I will fix this.
|
The |
|
What is the reason for splitting the package definitions into 6 different files: |
I will fix them with overrides file.
I will fix them.
Yes.
I didn't know that attribute. I will fix them.
I agree with you that six files are too many. How about three files, Thank you for your comments. |
|
I have rebased the branch. I will fix other parts. |
… those packages require non-free NVidia drivers
|
Updating sources.nix results in ~20 build errors. We may need a smarter generator, that recognize dependencies for native libraries and unsatisfiable packages. I will update the pull request anyway after fixing those errors. |
|
Updated sources.nix and fixed all issues. |
|
I don't like the name |
|
Two packages, auto-generated one and hand-written one, is acceptable. |
|
Okay, I've merged this patch (plus a few minor edits) to |
|
@taku0, there is one more thing: I'm still worrying about the |
|
The use of a chroot requires that Nix is run as root (see description for (from I encountered several errors when I ran |
Actually, it quite sufficient for
Wouldn't it be best to report that kind of issue to the authors of |
|
Filing an upstream bug report turns out to be surprisingly difficult. It's a little unclear who the canonical source of that package is, really. IMHO, the |
Chrooting is optional anyway. We must make a package definition works in non-chroot environments.
flocking |
The evidence I can find suggests that Debian is the canonical upstream; it was added by Branden Robinson in 2001, and every other version on the internet contains the "If anyone is using this to build a Debian package" line from that release. Unfortunately it seems Debian is not maintaining it as there are several ancient unreviewed patches in the bug tracker. But maybe someone will respond if a new bug report is filed. |
Packages for CRAN, the Comprehensive R Archive Network.
I have managed to compile 5000+ packages and masked ~300 packages which cannot be installed due to lack of dependencies or other reasons.
The files are organized as follows:
R CMD INSTALLwith appropriate options and environment variablesnativeBuildInputsdefinitions for native library dependenciesbuildInputsdefinitions for executable command dependenciesI have checked that all packages are compiled with following
~/.nixpkgs/config.nix.That does not mean that all packages do work properly; some packages may lack optional features, run slower than it can, or even worse crash with runtime error.
Note that Nix cannnot build a package with thousands of dependencies due to a limitation of shell script, so that building
rWrapperwith~/.nixpkgs/config.nixabove result inArgument list too longafter building all dependencies.Unfortunately, some packages may update source archives without changing version numbers, so that installation may fail with a hash verification error.