mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-07-13 21:50:38 +03:00
buildRosPackage: allow overriding all attributes
This commit is contained in:
parent
f32254eddf
commit
59a5942241
1 changed files with 9 additions and 9 deletions
|
@ -1,23 +1,23 @@
|
|||
{ stdenv, lib, pythonPackages }:
|
||||
{ buildType ? "catkin"
|
||||
, nativeBuildInputs ? []
|
||||
# Too difficult to fix all the problems with the tests in each package
|
||||
, doCheck ? false
|
||||
# ROS is sloppy with specifying build/runtime dependencies and
|
||||
# buildPythonPackage turns on strictDeps by default
|
||||
# FIXME: figure out a way to avoid this to eventually allow cross-compiling
|
||||
, strictDeps ? false
|
||||
, CXXFLAGS ? ""
|
||||
, passthru ? {}
|
||||
, ...
|
||||
}@args:
|
||||
|
||||
(if buildType == "ament_python" then pythonPackages.buildPythonPackage
|
||||
else stdenv.mkDerivation) (args // {
|
||||
# Too difficult to fix all the problems with the tests in each package
|
||||
doCheck = false;
|
||||
|
||||
# ROS is sloppy with specifying build/runtime dependencies and
|
||||
# buildPythonPackage turns on strictDeps by default
|
||||
# FIXME: figure out a way to avoid this to eventually allow cross-compiling
|
||||
strictDeps = false;
|
||||
inherit doCheck strictDeps;
|
||||
|
||||
# Disable warnings that cause "Log limit exceeded" errors on Hydra in lots of
|
||||
# packages that use Eigen
|
||||
CXXFLAGS = "-Wno-deprecated-declarations -Wno-deprecated-copy";
|
||||
CXXFLAGS = CXXFLAGS + "-Wno-deprecated-declarations -Wno-deprecated-copy";
|
||||
|
||||
passthru = passthru // {
|
||||
rosPackage = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue