devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Adding a NUR (Nix User Repository!)

Open vsoch opened this issue 3 years ago • 6 comments

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!

vsoch avatar Nov 08 '22 00:11 vsoch

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

loreto avatar Nov 08 '22 15:11 loreto

Awesome thank you! This would be hugely appreciated.

vsoch avatar Nov 08 '22 16:11 vsoch

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.

github-actions[bot] avatar Mar 11 '23 01:03 github-actions[bot]

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 avatar Dec 17 '25 17:12 elf-pavlik

@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

mionita1980 avatar Dec 18 '25 17:12 mionita1980

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

elf-pavlik avatar Dec 18 '25 17:12 elf-pavlik