mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
pinocchio: set MPLCONFIGDIR in check
fix: > Matplotlib created a temporary cache directory at > /private/tmp/nix-build-pinocchio-3.2.0.drv-0/matplotlib-cgeg512t > because the default path (/homeless-shelter/.matplotlib) is not a > writable directory; it is highly recommended to set the MPLCONFIGDIR > environment variable to a writable directory, in particular to speed > up the import of Matplotlib and to better support multiprocessing.
This commit is contained in:
@@ -41,6 +41,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# allow package:// uri use in examples
|
||||
export ROS_PACKAGE_PATH=${example-robot-data}/share
|
||||
|
||||
# silence matplotlib warning
|
||||
export MPLCONFIGDIR=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# CMAKE_BUILD_TYPE defaults to Release in this package,
|
||||
|
||||
Reference in New Issue
Block a user