about summary refs log tree commit diff
path: root/pkgs/development/python-modules/perfplot/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/perfplot/default.nix')
-rw-r--r--pkgs/development/python-modules/perfplot/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/perfplot/default.nix b/pkgs/development/python-modules/perfplot/default.nix
index 78cd6bdaf999..e71358857354 100644
--- a/pkgs/development/python-modules/perfplot/default.nix
+++ b/pkgs/development/python-modules/perfplot/default.nix
@@ -37,7 +37,7 @@ buildPythonPackage rec {
 
   # This variable is needed to suppress the "Trace/BPT trap: 5" error in Darwin's checkPhase.
   # Not sure of the details, but we can avoid it by changing the matplotlib backend during testing.
-  env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg";
+  env.MPLBACKEND = lib.optionalString stdenv.hostPlatform.isDarwin "Agg";
 
   nativeCheckInputs = [ pytestCheckHook ];