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?
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 becausenix-env
is trying to build something (most likely the user profile). I guess you could do anix-build --max-jobs 0
followed by anix-env -i --max-jobs <non-zero>
.NOTE3: actually why not simply adding the output of
nix-build
to thePATH
instead of installing it?