Add an example with Flakes

This commit is contained in:
Michal Sojka 2023-03-31 16:01:07 +02:00 committed by Ben Wolsieffer
parent 4e05a1caca
commit 048d9ef7ed
2 changed files with 13 additions and 0 deletions

View file

@ -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:

View file

@ -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;