diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index 806576b2965e..9f47eab639bb 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -87,11 +87,7 @@ buildPythonPackage rec { }; }; - mplsetup_cfg = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); - - preBuild = '' - cp "$mplsetup_cfg" ./mplsetup.cfg - ''; + MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); # Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the # corresponding interpreter object for its library paths. This fails if