Using git_pkgs on Windows (not WSL) #558
Replies: 2 comments 1 reply
-
|
Thanks for giving rix a try! Yes this hash is mandatory. As stated in the details section of rix help:
Why generate the expression on windows and not on the system on which the pipeline will run ? |
Beta Was this translation helpful? Give feedback.
-
|
Exactly, you can start by generating the default.nix at the beginning of the pipeline and then build it. See for example here where I drop into a temporary Nix shell and then generate the default.nix from the gen-env.R script : https://github.com/b-rodrigues/rixpress_demos/blob/9da166b7f1ce4a1d9da755848d431d0c33dadaa2/.github/workflows/basic_r.yaml#L43 then I run the pipeline. This is also what I do in the pipeline here inside Docker https://docs.ropensci.org/rix/articles/z-advanced-topic-using-nix-inside-docker.html |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently part of a team that runs pipelines through R, and would like to use rix to be able to go back to old versions of that pipeline. The team runs rstudio on Windows, and I would like to impact their normal workflows as little as possible - I would like to avoid forcing them to open new projects in WSL. It is acceptable, however, to ask them to use WSL to access old projects, and my plan is to have NIX installed there
I see that it is stated that Windows (sans WSL) can be used to generate default.nix files, and I can get that to work without the git_pkgs option, I get an error message that Nix isn't installed. It seems that {nix_sri_hash} is causing this error. I am not familiar with NIX, but is this hash absolutely necessary?
Beta Was this translation helpful? Give feedback.
All reactions