Skip to content

Commit

Permalink
python311: fix mingwW64 cross, mark as broken for other versions (Nix…
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 13, 2025
2 parents e85ca75 + 6658ddf commit c9e6f18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
'' + optionalString (stdenv.hostPlatform.isDarwin && x11Support && pythonAtLeast "3.11") ''
export TCLTK_LIBS="-L${tcl}/lib -L${tk}/lib -l${tcl.libPrefix} -l${tk.libPrefix}"
export TCLTK_CFLAGS="-I${tcl}/include -I${tk}/include"
'' + optionalString stdenv.hostPlatform.isWindows ''
export NIX_CFLAGS_COMPILE+=" -Wno-error=incompatible-pointer-types"
'' + optionalString stdenv.hostPlatform.isMusl ''
export NIX_CFLAGS_COMPILE+=" -DTHREAD_STACK_SIZE=0x100000"
'' +
Expand Down Expand Up @@ -665,5 +667,7 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
platforms = platforms.linux ++ platforms.darwin ++ platforms.windows ++ platforms.freebsd;
mainProgram = executable;
maintainers = lib.teams.python.members;
# mingw patches only apply to Python 3.11 currently
broken = (lib.versions.minor version) != "11" && stdenv.hostPlatform.isWindows;
};
})

0 comments on commit c9e6f18

Please sign in to comment.