lopsided98 / nix-ros-overlay

ROS overlay for the Nix package manager
Apache License 2.0
192 stars 77 forks source link

Moveit Packages in Iron: Ros-env cmake copy issue #391

Closed Thieso closed 2 weeks ago

Thieso commented 5 months ago

Hello,

I am trying to install MoveIt in Ros2 Iron but for some package I get the error:

Running phase: fixupPhase
> moving /nix/store/rlzhp0g8haspl9w4a3dcp54zbhxpwgvq-ros-env/lib64/* to /nix/store/rlzhp0g8haspl9w4a3dcp54zbhxpwgvq-ros-env/lib
> mv: not replacing '/nix/store/rlzhp0g8haspl9w4a3dcp54zbhxpwgvq-ros-env/lib/cmake'

The packages that encounter this issue are:

and possibly more which I have not tested.

Do you know what causes this error and how I may help to fix it?

Thank you

Thieso commented 5 months ago

So after trying out a bit I figured that I used this

    devShells.x86_64-linux.default = pkgs.mkShell {
      name = "ros devenv";
      buildInputs = with pkgs; with pkgs.rosPackages.humble; [
        (buildEnv {
          paths = [
               moveit-servo
          ];
        })
      ];
   }

but it has to be

    devShells.x86_64-linux.default = pkgs.mkShell {
      name = "ros devenv";
      buildInputs = with pkgs; with pkgs.rosPackages.humble; [
               moveit-servo
      ];
   }
Thieso commented 5 months ago

Hi, so I think I should reopen this since the fix causes then problems with the python packages not being in the path such that this is not really a good fix. Is there a better way to fix it?