-
Notifications
You must be signed in to change notification settings - Fork 15
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
Ship a default.nix
via inst/extdata
?
#14
Comments
It is mostly to avoid cyclic dependencies, since one can only run |
the other option would be to provide a helper in |
@b-rodrigues aaah |
I don't understand what you're suggesting? |
ok sorry for being unclear. I thought it would be useful on Win or WSL2, respectively, to install and use rix easily. For this, one could use a default .nix file. Is the intention clear? |
mainly because the package depends on httr and curl, which require system commands. With nix, it is really straight-forward to bootstrap without also first installing GNU compiler toolchain via apt (at least WSL2 does not give that by default). |
The disadvantage is of course that one has to manually update (nixpkgs version, R version etc.), if one would go through external data. That would maybe speak for a helper. |
Ah I got it now, sorry! But wouldn't users need to be able to install the package in the first place to get access to inst/default.nix? Which is why I wrote that section in the vignette |
true, but one can also just |
aah now also getting, you are right, cat'ing |
@
thanks for pointing to that resource. That is actually sufficient for the README, so I will just PR add the link, ok? |
yes that’d be great, and you are right as well, we could put that script in inst/ext and then have users run
which I believe should drop them in a nix-shell with R and rix installed, so from there they could start building new default.nix files and work from there. What do you think? |
I like that approach! Let me draft so users can tap like this. 💯 |
But let's make clear that rix can be used even if nix is not installed, so windows users could install rix on windows (and the dependencies would be easily installed, because binaries for Windows are available) and generate default.nix files that they could then build with Nix on WSL2 or on another machine with Nix available |
yes, good point. |
Generally like the restructuring. The only thing I thought was that maybe the part after the intro in the Readme could be a bit crispier in terms of lengh 🚀 |
done |
I thought this might be useful for windows. Basically one could just include "R" version plus {rix} dev version from github. @b-rodrigues what do you think?
The text was updated successfully, but these errors were encountered: