1
0
Fork 0
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:
Ben Wolsieffer 2020-08-24 18:28:26 -04:00
parent f32254eddf
commit 59a5942241

View file

@ -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;