Add rosVersion and rosDistro to passthru for all ROS packages.

This commit is contained in:
Ben Wolsieffer 2022-11-11 14:30:39 -05:00
parent 1c4a82825a
commit aaa3bb7d32
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, lib, pythonPackages }:
{ stdenv, lib, pythonPackages, rosDistro, rosVersion }:
{ buildType ? "catkin"
# Too difficult to fix all the problems with the tests in each package
, doCheck ? false
@ -24,6 +24,7 @@ else stdenv.mkDerivation) (args // {
passthru = passthru // {
rosPackage = true;
inherit rosDistro rosVersion;
};
} // lib.optionalAttrs (buildType == "ament_python") {
dontUseCmakeConfigure = true;

View file

@ -17,7 +17,10 @@ let
callPackage = self.newScope rosSelf;
buildRosPackage = rosSelf.callPackage ./build-ros-package { };
buildRosPackage = rosSelf.callPackage ./build-ros-package {
rosVersion = version;
rosDistro = distro;
};
buildEnv = rosSelf.callPackage ./build-env {
inherit (self) buildEnv;