mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-12 02:34:50 +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"
|
||||
# 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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue