knl / niv-updater-action

A GitHub Action that creates meaningful pull requests with updates to your niv-managed dependencies, so you don't have to do menial chores.
BSD 3-Clause "New" or "Revised" License
29 stars 11 forks source link

Use cache.nixos.org #46

Closed nmattia closed 3 years ago

nmattia commented 3 years ago

Closes #45

This ensures that we pull dependencies from niv's upstream cache as well, cache.nixos.org. Otherwise the action may spend hours rebuilding niv (ok, not niv itself, but dependencies).

NOTE: would be good to suggest to users that they set a timeout-minutes of O(1minute) to avoid hours of actions time being wasted rebuilding the world!

NOTE2: unfortunately we can't set --max-jobs to 0 because nix-env is trying to build something (most likely the user profile). I guess you could do a nix-build --max-jobs 0 followed by a nix-env -i --max-jobs <non-zero>.

NOTE3: actually why not simply adding the output of nix-build to the PATH instead of installing it?