mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-10 01:42:24 +03:00
Add an example with Flakes
This commit is contained in:
parent
4e05a1caca
commit
048d9ef7ed
2 changed files with 13 additions and 0 deletions
|
@ -29,6 +29,14 @@ roslaunch turtlebot3_gazebo turtlebot3_world.launch
|
|||
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
|
||||
```
|
||||
|
||||
With [Flakes enabled][flake], the equivalent of the above is:
|
||||
```
|
||||
nix develop github:lopsided98/nix-ros-overlay#example-turtlebot3-gazebo
|
||||
# Then use roslaunch comamnds as above
|
||||
```
|
||||
|
||||
[flake]: https://nixos.wiki/wiki/Flakes#Enable_flakes
|
||||
|
||||
## Current status
|
||||
|
||||
What works:
|
||||
|
|
|
@ -16,6 +16,11 @@
|
|||
};
|
||||
in {
|
||||
legacyPackages = pkgs.rosPackages;
|
||||
|
||||
devShells = {
|
||||
example-turtlebot3-gazebo = import ./examples/turtlebot3-gazebo.nix { inherit pkgs; };
|
||||
example-ros2-basic = import ./examples/ros2-basic.nix { inherit pkgs; };
|
||||
};
|
||||
}) // {
|
||||
overlays.default = import ./overlay.nix;
|
||||
nixosModules.default = import ./modules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue