Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Things done
The package download URL defined in r-modules/default.nix is missing a folder. Earlier it was like this:
http://mirrors.ustc.edu.cn/bioc/3.11/bioc/src/contrib/Archive/${package}_${version}.tar.gz
However, now, the server changed its URL schema to
http://mirrors.ustc.edu.cn/bioc/3.11/bioc/src/contrib/Archive/${package}/{package}_${version}.tar.gz
which resulted in the following error when building R packages
Manually looking at the structure of the server files (just open http://mirrors.ustc.edu.cn/bioc/3.11/bioc/src/contrib/Archive/) confirms what I write above.
(The server address is defined (and taken from) mirrors.nix btw.)
This PR fixes this by adding the new schema, also keeping the old one for compatibility (e.g. I don't know if all R mirror servers changed the schema).
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)