Added dependencies for ros2-robossembler
This commit is contained in:
parent
0a7587287c
commit
dc03fd20eb
2 changed files with 48 additions and 15 deletions
19
flake.lock
generated
19
flake.lock
generated
|
@ -32,11 +32,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1675153841,
|
||||
"narHash": "sha256-EWvU3DLq+4dbJiukfhS7r6sWZyJikgXn6kNl7eHljW8=",
|
||||
"lastModified": 1675614288,
|
||||
"narHash": "sha256-i3Rc/ENnz62BcrSloeVmAyPicEh4WsrEEYR+INs9TYw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ea692c2ad1afd6384e171eabef4f0887d2b882d3",
|
||||
"rev": "d25de6654a34d99dceb02e71e6db516b3b545be6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -48,11 +48,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1668192777,
|
||||
"narHash": "sha256-C/koqhRmkV2hRCENfDUAK6HP7HTDwLAmhyP5QOy1jtI=",
|
||||
"lastModified": 1674641431,
|
||||
"narHash": "sha256-qfo19qVZBP4qn5M5gXc/h1MDgAtPA5VxJm9s8RUAkVk=",
|
||||
"owner": "lopsided98",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "cb892295b6674f6d942ce78df3a27f2f219972e0",
|
||||
"rev": "9b97ad7b4330aacda9b2343396eb3df8a853b4fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -75,15 +75,16 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674431994,
|
||||
"narHash": "sha256-DszloUZcf1GHlOjDUlryMxmmz6DaTS8dFGpNKRvr2wg=",
|
||||
"lastModified": 1675055131,
|
||||
"narHash": "sha256-vDgCLPfMDYIe8yVeeLOmMw7AKQ1QtK6rbOoG0LmiZVI=",
|
||||
"owner": "lopsided98",
|
||||
"repo": "nix-ros-overlay",
|
||||
"rev": "731052037faa9840d05ce50360181f79c6aa1069",
|
||||
"rev": "9100a4701418d6a89880a9e112e7e056bab5ca7c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "lopsided98",
|
||||
"ref": "staging",
|
||||
"repo": "nix-ros-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
44
flake.nix
44
flake.nix
|
@ -3,7 +3,7 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
ros-flake.url = "github:lopsided98/nix-ros-overlay";
|
||||
ros-flake.url = "github:lopsided98/nix-ros-overlay?ref=staging";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ros-flake, flake-utils }:
|
||||
|
@ -11,8 +11,14 @@
|
|||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
ros = ros-flake.legacyPackages.${system}.rolling;
|
||||
ros = ros-flake.legacyPackages.${system};
|
||||
|
||||
# overrided packages and attributes for nix-ros-overlay
|
||||
humble-overrided = ros.humble.overrideScope (final: prev: {
|
||||
moveit-core = prev.moveit-core.overrideAttrs (old: { propagatedBuildInputs = old.propagatedBuildInputs ++ [ prev.tf2-kdl ];});
|
||||
moveit-kinematics = prev.moveit-kinematics.overrideAttrs (old: { propagatedBuildInputs = old.propagatedBuildInputs ++ [ final.moveit-ros-planning ];});
|
||||
});
|
||||
|
||||
# robossembler custom packages; defined here for share between devShells and packages
|
||||
bpy = pkgs.python3Packages.callPackage ./pkgs/development/python-modules/bpy { };
|
||||
blender = pkgs.callPackage ./pkgs/misc/blender { };
|
||||
|
@ -25,11 +31,37 @@
|
|||
|
||||
devShells.ros =
|
||||
pkgs.mkShell {
|
||||
buildInputs = (with ros; [ ros2run rmw-fastrtps-dynamic-cpp ]);
|
||||
buildInputs = (with humble-overrided; [
|
||||
ros2run
|
||||
rmw-fastrtps-dynamic-cpp
|
||||
urdf
|
||||
ament-pep257
|
||||
ament-lint-auto
|
||||
xacro
|
||||
ament-cmake
|
||||
rclcpp-action
|
||||
tf2
|
||||
action-msgs
|
||||
ament-copyright
|
||||
pythonPackages.pytest
|
||||
rosidl-default-generators
|
||||
behaviortree-cpp-v3
|
||||
geometry-msgs
|
||||
rosidl-default-runtime
|
||||
rclpy
|
||||
std-msgs
|
||||
ament-lint-common
|
||||
ament-flake8
|
||||
tf2-ros
|
||||
rclcpp
|
||||
gazebo-ros2-control
|
||||
moveit-core
|
||||
moveit-msgs
|
||||
moveit-ros-planning
|
||||
moveit-ros-planning-interface
|
||||
# rbs-skill-interfaces
|
||||
]) ++ (with pkgs; [ nlohmann_json ]);
|
||||
RMW_IMPLEMENTATION = "rmw_fastrtps_dynamic_cpp";
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH=${(with pkgs; lib.makeLibraryPath [ libsodium ])}
|
||||
'';
|
||||
};
|
||||
|
||||
devShells.bpy = pkgs.mkShell { packages = [ bpy ]; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue