Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install from repo via flakes #218

Closed
brothermechanic opened this issue Oct 12, 2022 · 3 comments
Closed

install from repo via flakes #218

brothermechanic opened this issue Oct 12, 2022 · 3 comments

Comments

@brothermechanic
Copy link

brothermechanic commented Oct 12, 2022

Hello
Help me, please, as new user, how to install packages via flakes
(via channels works, but i need flakes instead)
i get this error

$ nix profile install github:lopsided98/nix-ros-overlay#gazebo
error: flake 'github:lopsided98/nix-ros-overlay' does not provide attribute 'packages.x86_64-linux.gazebo', 'legacyPackages.x86_64-linux.gazebo' or 'gazebo'
@koalp
Copy link
Contributor

koalp commented Oct 12, 2022

Hello.
I think that you need to specify which ros distribution you want to use.

As an example, I use

nix shell -L github:lopsided98/nix-ros-overlay#humble.gazebo --command gazebo

to run gazebo from the humble distribution.

@brothermechanic
Copy link
Author

Hello. I think that you need to specify which ros distribution you want to use.

As an example, I use

nix shell -L github:lopsided98/nix-ros-overlay#humble.gazebo --command gazebo

to run gazebo from the humble distribution.

Cool!
It works! Tank you!

@lopsided98
Copy link
Owner

I need to fix this for real though, it just happens to work in this case since gazebo is part of the top-level package set and the distro specific package set. With other packages like colcon, there isn't a work-around, see: #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants