mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00
Refactor examples to allow passing pkgs as an argument
This will be useful in the next commit, where we integrate the example into flake.nix.
This commit is contained in:
parent
af531ba974
commit
4e05a1caca
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
# Environment containing basic ROS2 tools
|
||||
|
||||
with import ../. {};
|
||||
{ pkgs ? import ../. {} }:
|
||||
with pkgs;
|
||||
with rosPackages.humble;
|
||||
|
||||
mkShell {
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
# roslaunch turtlebot3_gazebo turtlebot3_world.launch
|
||||
# roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
|
||||
|
||||
with import ../. {};
|
||||
{ pkgs ? import ../. {} }:
|
||||
with pkgs;
|
||||
with rosPackages.noetic;
|
||||
with pythonPackages;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue