diff options
author | Alvar Penning <post@0x21.biz> | 2020-06-22 12:46:17 +0200 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-08-15 18:08:20 +0200 |
commit | b7ce309e6c6fbad584df85d9fd62c5185153e8f9 (patch) | |
tree | 131a342e078ee449976cfda00dc780bffac96758 /pkgs/development/interpreters/python | |
parent | 9be02e14dfd5a425b96fc576bab1bd530a790a7a (diff) |
pythonFull: add BlueZ support
This commit introduces two changes. First, cpython gets optional BlueZ support, which is needed for AF_BLUETOOTH sockets. Therefore bluezSupport was added as a parameter. Second, the call to the pythonFull packages has been adjusted. The Python packages have a self-reference called self. This was not adjusted for the override. As a result, Python packages for this special version of Python were not built with the overridden Python, but with the original one.
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index d26d060da72a5..4a8d4ab4bfbca 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -9,6 +9,7 @@ , readline , sqlite , tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false +, bluez ? null, bluezSupport ? false , zlib , self , configd @@ -45,6 +46,9 @@ assert x11Support -> tcl != null && tk != null && xorgproto != null && libX11 != null; + +assert bluezSupport -> bluez != null; + with stdenv.lib; let @@ -73,6 +77,7 @@ let buildInputs = filter (p: p != null) ([ zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ] ++ optionals x11Support [ tcl tk libX11 xorgproto ] + ++ optionals (bluezSupport && stdenv.isLinux) [ bluez ] ++ optionals stdenv.isDarwin [ configd ]); hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false); |