mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-14 19:48:39 +03:00
Add rosVersion and rosDistro to passthru for all ROS packages.
This commit is contained in:
parent
1c4a82825a
commit
aaa3bb7d32
2 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, pythonPackages }:
|
{ stdenv, lib, pythonPackages, rosDistro, rosVersion }:
|
||||||
{ buildType ? "catkin"
|
{ buildType ? "catkin"
|
||||||
# Too difficult to fix all the problems with the tests in each package
|
# Too difficult to fix all the problems with the tests in each package
|
||||||
, doCheck ? false
|
, doCheck ? false
|
||||||
|
@ -24,6 +24,7 @@ else stdenv.mkDerivation) (args // {
|
||||||
|
|
||||||
passthru = passthru // {
|
passthru = passthru // {
|
||||||
rosPackage = true;
|
rosPackage = true;
|
||||||
|
inherit rosDistro rosVersion;
|
||||||
};
|
};
|
||||||
} // lib.optionalAttrs (buildType == "ament_python") {
|
} // lib.optionalAttrs (buildType == "ament_python") {
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
|
|
@ -17,7 +17,10 @@ let
|
||||||
|
|
||||||
callPackage = self.newScope rosSelf;
|
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 {
|
buildEnv = rosSelf.callPackage ./build-env {
|
||||||
inherit (self) buildEnv;
|
inherit (self) buildEnv;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue