diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e98212f86bde..e4cd4f6acb85 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2125,15 +2125,8 @@ let python27Full = python27Base.override { # FIXME: We lack ncurses support, needed, e.g., for `gpsd'. - db4 = if getConfig ["python" "db4Support"] true then db4 else null; - sqlite = if getConfig ["python" "sqliteSupport"] true then sqlite else null; - readline = if getConfig ["python" "readlineSupport"] true then readline else null; - openssl = if getConfig ["python" "opensslSupport"] true then openssl else null; - tk = if getConfig ["python" "tkSupport"] true then tk else null; - tcl = if getConfig ["python" "tkSupport"] true then tcl else null; - libX11 = if getConfig ["python" "tkSupport"] true then xlibs.libX11 else null; - xproto = if getConfig ["python" "tkSupport"] true then xlibs.xproto else null; - ncurses = if getConfig ["python" "curses"] true then ncurses else null; + inherit db4 sqlite readline openssl tcl tk ncurses; + inherit (xlibs) libX11 xproto; }; python31Base = lowPrio (makeOverridable (import ../development/interpreters/python/3.1) {