Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nix build files #34

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Add Nix build files #34

wants to merge 13 commits into from

Conversation

wch
Copy link
Owner

@wch wch commented Dec 7, 2023

This PR adds files to build R-devel as a Nix flake.

Some notes:

  • The Recommended package filenames and hashes need to be updated manually. Because CRAN continually updates the set of recommended packages for the dev version of R and removes them from their Recommended/ directory, it means that it often will not be possible to rebuild R-devel from a previous point in time. It could make sense to create a Github Action which updates the filenames and hashes very frequently, like every few hours.
  • We'll want to also automate the updating of the r-source commit, commit date, SVN commit name, version string, and sha-256.
  • Most of the flake.nix came from the nixpkgs R derivation here: https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/applications/science/math/R/default.nix#L123.
  • As of SVN commit r85619 I needed to disable string format warnings being turned into errors to get a successful build.

To update the recommended package names and hashes, run:

rsync-recommended.sh
gen-recommended-hash.sh Recommended/

The commit and push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant