From 5ea293f5fd7dc9ce4fe09ddc199e89354b5b5c37 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 26 Apr 2022 21:04:07 -0700 Subject: [PATCH 1/2] tkinter: mark broken on platforms with missing binaries --- pkgs/development/python-modules/tkinter/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tkinter/default.nix b/pkgs/development/python-modules/tkinter/default.nix index 9f82dee45ef01..4b14f9c1c8459 100644 --- a/pkgs/development/python-modules/tkinter/default.nix +++ b/pkgs/development/python-modules/tkinter/default.nix @@ -25,6 +25,10 @@ buildPythonPackage { patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter* ''; - meta = py.meta; + meta = py.meta // { + # This derivation does not build from source. The binaries for + # Power64 are missing. + broken = stdenv.hostPlatform.isPower64; + }; } From ad35e9bd4cfcf66a0cc15329b28c03f11d33cff6 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 26 Apr 2022 21:04:23 -0700 Subject: [PATCH 2/2] matplotlib: omit tkinter if broken --- pkgs/development/python-modules/matplotlib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index cc118d9f0ab08..42ee336e9cc61 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -5,7 +5,7 @@ , enableGhostscript ? true, ghostscript, gtk3 , enableGtk3 ? false, cairo # darwin has its own "MacOSX" backend -, enableTk ? !stdenv.isDarwin, tcl, tk, tkinter +, enableTk ? !stdenv.isDarwin && !tkinter.meta.broken, tcl, tk, tkinter , enableQt ? false, pyqt5 # required for headless detection , libX11, wayland