cpython: build with bluetooth support in default build

Closes: #341001

Changed files
+4 -7
pkgs
development
interpreters
python
cpython
+4 -7
pkgs/development/interpreters/python/cpython/default.nix
···
windows,
# optional dependencies
-
bluezSupport ? false,
-
bluez,
+
bluezSupport ? !withMinimalDeps && stdenv.hostPlatform.isLinux,
+
bluez-headers,
mimetypesSupport ? !withMinimalDeps,
mailcap,
tzdata,
···
# cannot use fetchpatch! All mutable patches (generated by GitHub or
# cgit) that are needed here should be included directly in Nixpkgs as
# files.
-
-
assert bluezSupport -> bluez != null;
assert lib.assertMsg (
enableFramework -> stdenv.hostPlatform.isDarwin
···
passthru =
let
# When we override the interpreter we also need to override the spliced versions of the interpreter
-
# bluez is excluded manually to break an infinite recursion.
-
inputs' = lib.filterAttrs (n: v: n != "bluez" && n != "passthruFun" && !lib.isDerivation v) inputs;
+
inputs' = lib.filterAttrs (n: v: n != "passthruFun" && !lib.isDerivation v) inputs;
# Memoization of the splices to avoid re-evaluating this function for all combinations of splices e.g.
# python3.pythonOnBuildForHost.pythonOnBuildForTarget == python3.pythonOnBuildForTarget by consuming
# __splices as an arg and using the cache if populated.
···
zstd
]
++ optionals bluezSupport [
-
bluez
+
bluez-headers
]
++ optionals stdenv.hostPlatform.isMinGW [
windows.dlfcn