Adding a NUR (Nix User Repository!)
Hi! I'd like to install packages from a NUR: https://nur.nix-community.org/repos/rseops/ and just doing devbox add didn't work.
I'm fairly new to this ecosystem, so apologizes in advance if I'm missing something obvious!
$ devbox add nur.repos.rseops.caliper
Error: package nur.repos.rseops.caliper not found
How do I tell devbox about this set of NUR repos? There are quite a few good packages there.
Update: this thread might have helpful hints for how we'd add it directly to nix: https://discourse.nixos.org/t/introducing-nur-the-nix-user-repostory-share-all-your-nix-expressions/431/5
Many thanks!
Hi @vsoch ,
Thanks for making this suggestion. We currently only install packages from nixpkgs (https://search.nixos.org/packages).
But I could imagine supporting a notation like the one you outlined to allow installing packages from other sources as well. Let me discuss with the team to see what we can do.
Best, Daniel
Awesome thank you! This would be hugely appreciated.
This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will be closed in 5 days.
I noticed that https://www.nixhub.io/packages/dagger is very old There is a NUR package https://github.com/dagger/nix
It would be nice to have it supported in devbox.
@elf-pavlik
There you go:
create a file called devbox.json with content
{
"$schema": "https://raw.githubusercontent.com/jetpack-io/devbox/0.16.0/.schema/devbox.schema.json",
"packages": [
"github:dagger/nix#packages.x86_64-linux.dagger",
],
}
And run it:
$ devbox shell -c .
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Starting a devbox shell...
(devbox) $ dagger version
dagger v0.19.8 (image://registry.dagger.io/engine:v0.19.8) linux/amd64
Thank you @mionita1980 now I see it in the docs: https://www.jetify.com/docs/devbox/guides/using-flakes#using-a-flake-from-github%E2%80%8B