Merge pull request #265764 from amjoseph-nixpkgs/pr/pythonForBuild

authored by Artturi and committed by GitHub d24da528 878631d4

+141 -140
+2 -2
doc/languages-frameworks/python.section.md
··· 142 142 143 143 The `buildPythonPackage` mainly does four things: 144 144 145 - * In the [`buildPhase`](#build-phase), it calls `${python.pythonForBuild.interpreter} setup.py bdist_wheel` to 145 + * In the [`buildPhase`](#build-phase), it calls `${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel` to 146 146 build a wheel binary zipfile. 147 147 * In the [`installPhase`](#ssec-install-phase), it installs the wheel file using `pip install *.whl`. 148 148 * In the [`postFixup`](#var-stdenv-postFixup) phase, the `wrapPythonPrograms` bash function is called to ··· 1682 1682 As workaround install it as an extra `preInstall` step: 1683 1683 1684 1684 ```shell 1685 - ${python.pythonForBuild.interpreter} setup.py install_data --install-dir=$out --root=$out 1685 + ${python.pythonOnBuildForHost.interpreter} setup.py install_data --install-dir=$out --root=$out 1686 1686 sed -i '/ = data\_files/d' setup.py 1687 1687 ``` 1688 1688
+1 -1
nixos/modules/programs/fish.nix
··· 268 268 '' 269 269 mkdir -p $out 270 270 if [ -d $package/share/man ]; then 271 - find $package/share/man -type f | xargs ${pkgs.python3.pythonForBuild.interpreter} ${patchedGenerator}/create_manpage_completions.py --directory $out >/dev/null 271 + find $package/share/man -type f | xargs ${pkgs.python3.pythonOnBuildForHost.interpreter} ${patchedGenerator}/create_manpage_completions.py --directory $out >/dev/null 272 272 fi 273 273 ''; 274 274 in
+1 -1
pkgs/applications/misc/calibre/default.nix
··· 148 148 export XDG_DATA_HOME=$out/share 149 149 export XDG_UTILS_INSTALL_MODE="user" 150 150 151 - ${python3Packages.python.pythonForBuild.interpreter} setup.py install --root=$out \ 151 + ${python3Packages.python.pythonOnBuildForHost.interpreter} setup.py install --root=$out \ 152 152 --prefix=$out \ 153 153 --libdir=$out/lib \ 154 154 --staging-root=$out \
+2 -2
pkgs/applications/misc/tandoor-recipes/default.nix
··· 113 113 touch cookbook/static/themes/bootstrap.min.css.map 114 114 touch cookbook/static/css/bootstrap-vue.min.css.map 115 115 116 - ${python.pythonForBuild.interpreter} manage.py collectstatic_js_reverse 117 - ${python.pythonForBuild.interpreter} manage.py collectstatic 116 + ${python.pythonOnBuildForHost.interpreter} manage.py collectstatic_js_reverse 117 + ${python.pythonOnBuildForHost.interpreter} manage.py collectstatic 118 118 119 119 runHook postBuild 120 120 '';
+1 -1
pkgs/applications/misc/zathura/core/default.nix
··· 30 30 ]; 31 31 32 32 nativeBuildInputs = [ 33 - meson ninja pkg-config desktop-file-utils python3.pythonForBuild.pkgs.sphinx 33 + meson ninja pkg-config desktop-file-utils python3.pythonOnBuildForHost.pkgs.sphinx 34 34 gettext wrapGAppsHook libxml2 appstream-glib 35 35 ]; 36 36
+2 -2
pkgs/applications/networking/browsers/chromium/common.nix
··· 62 62 buildFun: 63 63 64 64 let 65 - python3WithPackages = python3.pythonForBuild.withPackages(ps: with ps; [ 65 + python3WithPackages = python3.pythonOnBuildForHost.withPackages(ps: with ps; [ 66 66 ply jinja2 setuptools 67 67 ]); 68 68 clangFormatPython3 = fetchurl { ··· 437 437 438 438 # This is to ensure expansion of $out. 439 439 libExecPath="${libExecPath}" 440 - ${python3.pythonForBuild}/bin/python3 build/linux/unbundle/replace_gn_files.py --system-libraries ${toString gnSystemLibraries} 440 + ${python3.pythonOnBuildForHost}/bin/python3 build/linux/unbundle/replace_gn_files.py --system-libraries ${toString gnSystemLibraries} 441 441 ${gnChromium}/bin/gn gen --args=${lib.escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt 442 442 443 443 # Fail if `gn gen` contains a WARNING.
+1 -1
pkgs/applications/networking/flent/default.nix
··· 34 34 35 35 cat >test-runner <<EOF 36 36 #!/bin/sh 37 - ${python.pythonForBuild.interpreter} nix_run_setup test 37 + ${python.pythonOnBuildForHost.interpreter} nix_run_setup test 38 38 EOF 39 39 chmod +x test-runner 40 40 wrapQtApp test-runner --prefix PYTHONPATH : $PYTHONPATH
+1 -1
pkgs/applications/networking/instant-messengers/deltachat-cursed/default.nix
··· 18 18 hash = "sha256-1QNhNPa6ZKn0lGQXs/cmfdSFHscwlYwFC/2DpnMoHvY="; 19 19 }; 20 20 21 - nativeBuildInputs = with python3.pythonForBuild.pkgs; [ 21 + nativeBuildInputs = with python3.pythonOnBuildForHost.pkgs; [ 22 22 setuptools 23 23 setuptools-scm 24 24 ];
+1 -1
pkgs/applications/networking/mailreaders/afew/default.nix
··· 26 26 outputs = [ "out" "doc" ]; 27 27 28 28 postBuild = '' 29 - ${python3Packages.python.pythonForBuild.interpreter} setup.py build_sphinx -b html,man 29 + ${python3Packages.python.pythonOnBuildForHost.interpreter} setup.py build_sphinx -b html,man 30 30 ''; 31 31 32 32 postInstall = ''
+1 -1
pkgs/applications/networking/p2p/zeronet-conservancy/default.nix
··· 24 24 25 25 buildPhase = '' 26 26 runHook preBuild 27 - ${python3Packages.python.pythonForBuild.interpreter} -O -m compileall . 27 + ${python3Packages.python.pythonOnBuildForHost.interpreter} -O -m compileall . 28 28 runHook postBuild 29 29 ''; 30 30
+1 -1
pkgs/applications/networking/p2p/zeronet/default.nix
··· 18 18 ]; 19 19 20 20 buildPhase = '' 21 - ${python3Packages.python.pythonForBuild.interpreter} -O -m compileall . 21 + ${python3Packages.python.pythonOnBuildForHost.interpreter} -O -m compileall . 22 22 ''; 23 23 24 24 installPhase = ''
+3 -3
pkgs/applications/office/paperless-ngx/default.nix
··· 224 224 postBuild = '' 225 225 # Compile manually because `pythonRecompileBytecodeHook` only works 226 226 # for files in `python.sitePackages` 227 - ${python.pythonForBuild.interpreter} -OO -m compileall src 227 + ${python.pythonOnBuildForHost.interpreter} -OO -m compileall src 228 228 229 229 # Collect static files 230 - ${python.pythonForBuild.interpreter} src/manage.py collectstatic --clear --no-input 230 + ${python.pythonOnBuildForHost.interpreter} src/manage.py collectstatic --clear --no-input 231 231 232 232 # Compile string translations using gettext 233 - ${python.pythonForBuild.interpreter} src/manage.py compilemessages 233 + ${python.pythonOnBuildForHost.interpreter} src/manage.py compilemessages 234 234 ''; 235 235 236 236 installPhase = ''
+1 -1
pkgs/applications/science/biology/quast/default.nix
··· 27 27 --replace "/bin/bash" "${bash}/bin/bash" 28 28 mkdir -p "$out/${python.sitePackages}" 29 29 export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH" 30 - ${python.pythonForBuild.interpreter} setup.py install \ 30 + ${python.pythonOnBuildForHost.interpreter} setup.py install \ 31 31 --install-lib=$out/${python.sitePackages} \ 32 32 --prefix="$out" 33 33 '';
+1 -1
pkgs/applications/science/logic/z3/default.nix
··· 47 47 48 48 configurePhase = concatStringsSep " " 49 49 ( 50 - [ "${python.pythonForBuild.interpreter} scripts/mk_make.py --prefix=$out" ] 50 + [ "${python.pythonOnBuildForHost.interpreter} scripts/mk_make.py --prefix=$out" ] 51 51 ++ optional javaBindings "--java" 52 52 ++ optional ocamlBindings "--ml" 53 53 ++ optional pythonBindings "--python --pypkgdir=$out/${python.sitePackages}"
+4 -4
pkgs/applications/terminal-emulators/kitty/default.nix
··· 128 128 runHook preBuild 129 129 ${ lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) "export MACOSX_DEPLOYMENT_TARGET=11" } 130 130 ${if stdenv.isDarwin then '' 131 - ${python.pythonForBuild.interpreter} setup.py build ${darwinOptions} 131 + ${python.pythonOnBuildForHost.interpreter} setup.py build ${darwinOptions} 132 132 make docs 133 - ${python.pythonForBuild.interpreter} setup.py kitty.app ${darwinOptions} 133 + ${python.pythonOnBuildForHost.interpreter} setup.py kitty.app ${darwinOptions} 134 134 '' else '' 135 - ${python.pythonForBuild.interpreter} setup.py linux-package \ 135 + ${python.pythonOnBuildForHost.interpreter} setup.py linux-package \ 136 136 --egl-library='${lib.getLib libGL}/lib/libEGL.so.1' \ 137 137 --startup-notification-library='${libstartup_notification}/lib/libstartup-notification-1.so' \ 138 138 --canberra-library='${libcanberra}/lib/libcanberra.so' \ 139 139 --fontconfig-library='${fontconfig.lib}/lib/libfontconfig.so' \ 140 140 ${commonOptions} 141 - ${python.pythonForBuild.interpreter} setup.py build-launcher 141 + ${python.pythonOnBuildForHost.interpreter} setup.py build-launcher 142 142 ''} 143 143 runHook postBuild 144 144 '';
+6 -6
pkgs/development/interpreters/python/cpython/2.7/default.nix
··· 56 56 57 57 let 58 58 buildPackages = pkgsBuildHost; 59 - inherit (passthru) pythonForBuild; 59 + inherit (passthru) pythonOnBuildForHost; 60 60 61 - pythonForBuildInterpreter = if stdenv.hostPlatform == stdenv.buildPlatform then 61 + pythonOnBuildForHostInterpreter = if stdenv.hostPlatform == stdenv.buildPlatform then 62 62 "$out/bin/python" 63 - else pythonForBuild.interpreter; 63 + else pythonOnBuildForHost.interpreter; 64 64 65 65 passthru = passthruFun rec { 66 66 inherit self sourceVersion packageOverrides; ··· 297 297 # We build 3 levels of optimized bytecode. Note the default level, without optimizations, 298 298 # is not reproducible yet. https://bugs.python.org/issue29708 299 299 # Not creating bytecode will result in a large performance loss however, so we do build it. 300 - find $out -name "*.py" | ${pythonForBuildInterpreter} -m compileall -q -f -x "lib2to3" -i - 301 - find $out -name "*.py" | ${pythonForBuildInterpreter} -O -m compileall -q -f -x "lib2to3" -i - 302 - find $out -name "*.py" | ${pythonForBuildInterpreter} -OO -m compileall -q -f -x "lib2to3" -i - 300 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -m compileall -q -f -x "lib2to3" -i - 301 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -O -m compileall -q -f -x "lib2to3" -i - 302 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -OO -m compileall -q -f -x "lib2to3" -i - 303 303 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 304 304 cp libpython2.7.dll.a $out/lib 305 305 '';
+9 -9
pkgs/development/interpreters/python/cpython/default.nix
··· 92 92 openssl' = if openssl != null then openssl_legacy else null; 93 93 94 94 buildPackages = pkgsBuildHost; 95 - inherit (passthru) pythonForBuild; 95 + inherit (passthru) pythonOnBuildForHost; 96 96 97 97 inherit (darwin.apple_sdk.frameworks) Cocoa; 98 98 ··· 127 127 nukeReferences 128 128 ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 129 129 buildPackages.stdenv.cc 130 - pythonForBuild 130 + pythonOnBuildForHost 131 131 ] ++ optionals (stdenv.cc.isClang && (!stdenv.hostPlatform.useAndroidPrebuilt or false) && (enableLTO || enableOptimizations)) [ 132 132 stdenv.cc.cc.libllvm.out 133 133 ]; ··· 148 148 149 149 hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false); 150 150 151 - pythonForBuildInterpreter = if stdenv.hostPlatform == stdenv.buildPlatform then 151 + pythonOnBuildForHostInterpreter = if stdenv.hostPlatform == stdenv.buildPlatform then 152 152 "$out/bin/python" 153 - else pythonForBuild.interpreter; 153 + else pythonOnBuildForHost.interpreter; 154 154 155 155 src = fetchurl { 156 156 url = with sourceVersion; "https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz"; ··· 388 388 "ac_cv_file__dev_ptmx=${if stdenv.hostPlatform.isWindows then "no" else "yes"}" 389 389 "ac_cv_file__dev_ptc=${if stdenv.hostPlatform.isWindows then "no" else "yes"}" 390 390 ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform && pythonAtLeast "3.11") [ 391 - "--with-build-python=${pythonForBuildInterpreter}" 391 + "--with-build-python=${pythonOnBuildForHostInterpreter}" 392 392 ] ++ optionals stdenv.hostPlatform.isLinux [ 393 393 # Never even try to use lchmod on linux, 394 394 # don't rely on detecting glibc-isms. ··· 511 511 # We build 3 levels of optimized bytecode. Note the default level, without optimizations, 512 512 # is not reproducible yet. https://bugs.python.org/issue29708 513 513 # Not creating bytecode will result in a large performance loss however, so we do build it. 514 - find $out -name "*.py" | ${pythonForBuildInterpreter} -m compileall -q -f -x "lib2to3" -i - 515 - find $out -name "*.py" | ${pythonForBuildInterpreter} -O -m compileall -q -f -x "lib2to3" -i - 516 - find $out -name "*.py" | ${pythonForBuildInterpreter} -OO -m compileall -q -f -x "lib2to3" -i - 514 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -m compileall -q -f -x "lib2to3" -i - 515 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -O -m compileall -q -f -x "lib2to3" -i - 516 + find $out -name "*.py" | ${pythonOnBuildForHostInterpreter} -OO -m compileall -q -f -x "lib2to3" -i - 517 517 '' + '' 518 518 # *strip* shebang from libpython gdb script - it should be dual-syntax and 519 519 # interpretable by whatever python the gdb in question is using, which may ··· 561 561 ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 562 562 # Ensure we don't have references to build-time packages. 563 563 # These typically end up in shebangs. 564 - pythonForBuild buildPackages.bash 564 + pythonOnBuildForHost buildPackages.bash 565 565 ]; 566 566 567 567 separateDebugInfo = true;
+6 -6
pkgs/development/interpreters/python/hooks/default.nix
··· 1 1 self: dontUse: with self; 2 2 3 3 let 4 - inherit (python) pythonForBuild; 5 - pythonInterpreter = pythonForBuild.interpreter; 4 + inherit (python) pythonOnBuildForHost; 5 + pythonInterpreter = pythonOnBuildForHost.interpreter; 6 6 pythonSitePackages = python.sitePackages; 7 7 pythonCheckInterpreter = python.interpreter; 8 8 setuppy = ../run_setup.py; ··· 68 68 # set, but in downstream projects that build packages depending on other 69 69 # versions of this hook's dependencies. 70 70 passthru.tests = import ./pypa-build-hook-tests.nix { 71 - inherit pythonForBuild runCommand; 71 + inherit pythonOnBuildForHost runCommand; 72 72 }; 73 73 } ./pypa-build-hook.sh) { 74 - inherit (pythonForBuild.pkgs) build; 74 + inherit (pythonOnBuildForHost.pkgs) build; 75 75 }; 76 76 77 77 pipInstallHook = callPackage ({ makePythonHook, pip }: ··· 91 91 inherit pythonInterpreter pythonSitePackages; 92 92 }; 93 93 } ./pypa-install-hook.sh) { 94 - inherit (pythonForBuild.pkgs) installer; 94 + inherit (pythonOnBuildForHost.pkgs) installer; 95 95 }; 96 96 97 97 pytestCheckHook = callPackage ({ makePythonHook, pytest }: ··· 227 227 sphinxHook = callPackage ({ makePythonHook, installShellFiles }: 228 228 makePythonHook { 229 229 name = "python${python.pythonVersion}-sphinx-hook"; 230 - propagatedBuildInputs = [ pythonForBuild.pkgs.sphinx installShellFiles ]; 230 + propagatedBuildInputs = [ pythonOnBuildForHost.pkgs.sphinx installShellFiles ]; 231 231 } ./sphinx-hook.sh) {}; 232 232 }
+4 -4
pkgs/development/interpreters/python/hooks/pypa-build-hook-test.nix
··· 1 - { pythonForBuild, runCommand }: { 1 + { pythonOnBuildForHost, runCommand }: { 2 2 dont-propagate-conflicting-deps = let 3 3 # customize a package so that its store paths differs 4 4 mkConflict = pkg: pkg.overrideAttrs { some_modification = true; }; ··· 16 16 ''; 17 17 in 18 18 # this build must never triger conflicts 19 - pythonForBuild.pkgs.buildPythonPackage { 19 + pythonOnBuildForHost.pkgs.buildPythonPackage { 20 20 pname = "dont-propagate-conflicting-deps"; 21 21 version = "0.0.0"; 22 22 src = projectSource; ··· 24 24 propagatedBuildInputs = [ 25 25 # At least one dependency of `build` should be included here to 26 26 # keep the test meaningful 27 - (mkConflict pythonForBuild.pkgs.tomli) 27 + (mkConflict pythonOnBuildForHost.pkgs.tomli) 28 28 # setuptools is also needed to build the example project 29 - pythonForBuild.pkgs.setuptools 29 + pythonOnBuildForHost.pkgs.setuptools 30 30 ]; 31 31 }; 32 32 }
+3 -3
pkgs/development/interpreters/python/mk-python-derivation.nix
··· 223 223 ] ++ lib.optionals (format' == "pyproject") [( 224 224 if isBootstrapPackage then 225 225 pypaBuildHook.override { 226 - inherit (python.pythonForBuild.pkgs.bootstrap) build; 226 + inherit (python.pythonOnBuildForHost.pkgs.bootstrap) build; 227 227 wheel = null; 228 228 } 229 229 else ··· 235 235 ] ++ lib.optionals (format' != "other") [( 236 236 if isBootstrapInstallPackage then 237 237 pypaInstallHook.override { 238 - inherit (python.pythonForBuild.pkgs.bootstrap) installer; 238 + inherit (python.pythonOnBuildForHost.pkgs.bootstrap) installer; 239 239 } 240 240 else 241 241 pypaInstallHook ··· 279 279 '' + attrs.postFixup or ""; 280 280 281 281 # Python packages built through cross-compilation are always for the host platform. 282 - disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonForBuild ]; 282 + disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonOnBuildForHost ]; 283 283 284 284 outputs = outputs ++ lib.optional withDistOutput "dist"; 285 285
+4 -3
pkgs/development/interpreters/python/passthrufun.nix
··· 91 91 pythonAtLeast = lib.versionAtLeast pythonVersion; 92 92 pythonOlder = lib.versionOlder pythonVersion; 93 93 inherit hasDistutilsCxxPatch; 94 - # TODO: deprecate 95 - # Not done immediately because its likely used outside Nixpkgs. 96 - pythonForBuild = pythonOnBuildForHost_overridden; 94 + # Remove after 24.11 is released. 95 + pythonForBuild = 96 + lib.warnIf (lib.isInOldestRelease 2311) "`pythonForBuild` (from `python*`) has been renamed to `pythonOnBuildForHost`" 97 + pythonOnBuildForHost_overridden; 97 98 pythonOnBuildForHost = pythonOnBuildForHost_overridden; 98 99 99 100 tests = callPackage ./tests.nix {
+1 -1
pkgs/development/interpreters/python/python2/mk-python-derivation.nix
··· 224 224 '' + attrs.postFixup or ""; 225 225 226 226 # Python packages built through cross-compilation are always for the host platform. 227 - disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonForBuild ]; 227 + disallowedReferences = lib.optionals (python.stdenv.hostPlatform != python.stdenv.buildPlatform) [ python.pythonOnBuildForHost ]; 228 228 229 229 outputs = outputs ++ lib.optional withDistOutput "dist"; 230 230
+1 -1
pkgs/development/interpreters/python/wrap-python.nix
··· 8 8 propagatedBuildInputs = [ makeWrapper ]; 9 9 substitutions.sitePackages = python.sitePackages; 10 10 substitutions.executable = python.interpreter; 11 - substitutions.python = python.pythonForBuild; 11 + substitutions.python = python.pythonOnBuildForHost; 12 12 substitutions.pythonHost = python; 13 13 substitutions.magicalSedExpression = let 14 14 # Looks weird? Of course, it's between single quoted shell strings.
+2 -2
pkgs/development/interpreters/renpy/default.nix
··· 59 59 60 60 buildPhase = with python3.pkgs; '' 61 61 runHook preBuild 62 - ${python.pythonForBuild.interpreter} module/setup.py build --parallel=$NIX_BUILD_CORES 62 + ${python.pythonOnBuildForHost.interpreter} module/setup.py build --parallel=$NIX_BUILD_CORES 63 63 runHook postBuild 64 64 ''; 65 65 66 66 installPhase = with python3.pkgs; '' 67 67 runHook preInstall 68 68 69 - ${python.pythonForBuild.interpreter} module/setup.py install_lib -d $out/${python.sitePackages} 69 + ${python.pythonOnBuildForHost.interpreter} module/setup.py install_lib -d $out/${python.sitePackages} 70 70 mkdir -p $out/share/renpy 71 71 cp -vr sdk-fonts gui launcher renpy the_question tutorial renpy.py $out/share/renpy 72 72
+1 -1
pkgs/development/libraries/gexiv2/default.nix
··· 36 36 gtk-doc 37 37 docbook-xsl-nons 38 38 docbook_xml_dtd_43 39 - (python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ])) 39 + (python3.pythonOnBuildForHost.withPackages (ps: [ ps.pygobject3 ])) 40 40 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 41 41 mesonEmulatorHook 42 42 ];
+1 -1
pkgs/development/libraries/gpgme/default.nix
··· 50 50 pkg-config 51 51 texinfo 52 52 ] ++ lib.optionals pythonSupport [ 53 - python3.pythonForBuild 53 + python3.pythonOnBuildForHost 54 54 ncurses 55 55 swig2 56 56 which
+1 -1
pkgs/development/libraries/gusb/default.nix
··· 17 17 }: 18 18 19 19 let 20 - pythonEnv = python3.pythonForBuild.withPackages (ps: with ps; [ 20 + pythonEnv = python3.pythonOnBuildForHost.withPackages (ps: with ps; [ 21 21 setuptools 22 22 ]); 23 23 in
+1 -1
pkgs/development/libraries/libftdi/1.x.nix
··· 45 45 "-DPYTHON_BINDINGS=${onOff pythonSupport}" 46 46 "-DDOCUMENTATION=${onOff docSupport}" 47 47 ] ++ lib.optionals pythonSupport [ 48 - "-DPYTHON_EXECUTABLE=${python3.pythonForBuild.interpreter}" 48 + "-DPYTHON_EXECUTABLE=${python3.pythonOnBuildForHost.interpreter}" 49 49 "-DPYTHON_LIBRARY=${python3}/lib/libpython${python3.pythonVersion}${stdenv.hostPlatform.extensions.sharedLibrary}" 50 50 ]; 51 51
+1 -1
pkgs/development/libraries/libgweather/default.nix
··· 47 47 pkg-config 48 48 gettext 49 49 glib 50 - (python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ])) 50 + (python3.pythonOnBuildForHost.withPackages (ps: [ ps.pygobject3 ])) 51 51 ] ++ lib.optionals withIntrospection [ 52 52 gi-docgen 53 53 gobject-introspection
+1 -1
pkgs/development/libraries/libical/default.nix
··· 56 56 ]; 57 57 nativeInstallCheckInputs = [ 58 58 # running libical-glib tests 59 - (python3.pythonForBuild.withPackages (pkgs: with pkgs; [ 59 + (python3.pythonOnBuildForHost.withPackages (pkgs: with pkgs; [ 60 60 pygobject3 61 61 ])) 62 62 ];
+1 -1
pkgs/development/libraries/libiio/default.nix
··· 56 56 "-DOSX_PACKAGE=off" 57 57 "-DOSX_FRAMEWORK=off" 58 58 ] ++ lib.optionals pythonSupport [ 59 - "-DPython_EXECUTABLE=${python.pythonForBuild.interpreter}" 59 + "-DPython_EXECUTABLE=${python.pythonOnBuildForHost.interpreter}" 60 60 "-DPYTHON_BINDINGS=on" 61 61 ] ++ lib.optionals (!avahiSupport) [ 62 62 "-DHAVE_DNS_SD=OFF"
+1 -1
pkgs/development/libraries/libxml2/default.nix
··· 83 83 (lib.enableFeature enableShared "shared") 84 84 (lib.withFeature icuSupport "icu") 85 85 (lib.withFeature pythonSupport "python") 86 - (lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}") 86 + (lib.optionalString pythonSupport "PYTHON=${python.pythonOnBuildForHost.interpreter}") 87 87 ]; 88 88 89 89 installFlags = lib.optionals pythonSupport [
+1 -1
pkgs/development/libraries/libxslt/default.nix
··· 55 55 "--without-mem-debug" 56 56 "--without-debugger" 57 57 (lib.withFeature pythonSupport "python") 58 - (lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}") 58 + (lib.optionalString pythonSupport "PYTHON=${python.pythonOnBuildForHost.interpreter}") 59 59 ] ++ lib.optionals (!cryptoSupport) [ 60 60 "--without-crypto" 61 61 ];
+1 -1
pkgs/development/libraries/lirc/default.nix
··· 18 18 }: 19 19 20 20 let 21 - pythonEnv = python3.pythonForBuild.withPackages (p: with p; [ pyyaml setuptools ]); 21 + pythonEnv = python3.pythonOnBuildForHost.withPackages (p: with p; [ pyyaml setuptools ]); 22 22 in 23 23 stdenv.mkDerivation rec { 24 24 pname = "lirc";
+1 -1
pkgs/development/libraries/pipewire/wireplumber.nix
··· 46 46 gobject-introspection 47 47 ] ++ lib.optionals (enableDocs || enableGI) [ 48 48 doxygen 49 - (python3.pythonForBuild.withPackages (ps: with ps; 49 + (python3.pythonOnBuildForHost.withPackages (ps: with ps; 50 50 lib.optionals enableDocs [ sphinx sphinx-rtd-theme breathe ] 51 51 ++ lib.optionals enableGI [ lxml ] 52 52 ))
+1 -1
pkgs/development/libraries/polkit/default.nix
··· 101 101 102 102 nativeCheckInputs = [ 103 103 dbus 104 - (python3.pythonForBuild.withPackages (pp: with pp; [ 104 + (python3.pythonOnBuildForHost.withPackages (pp: with pp; [ 105 105 dbus-python 106 106 (python-dbusmock.overridePythonAttrs (attrs: { 107 107 # Avoid dependency cycle.
+2 -2
pkgs/development/libraries/science/chemistry/openmm/default.nix
··· 83 83 export OPENMM_LIB_PATH=$out/lib 84 84 export OPENMM_INCLUDE_PATH=$out/include 85 85 cd python 86 - ${python3Packages.python.pythonForBuild.interpreter} setup.py build 87 - ${python3Packages.python.pythonForBuild.interpreter} setup.py install --prefix=$out 86 + ${python3Packages.python.pythonOnBuildForHost.interpreter} setup.py build 87 + ${python3Packages.python.pythonOnBuildForHost.interpreter} setup.py install --prefix=$out 88 88 ''; 89 89 90 90 postFixup = ''
+3 -3
pkgs/development/libraries/science/math/or-tools/default.nix
··· 63 63 "-DFETCH_PYTHON_DEPS=OFF" 64 64 "-DUSE_GLPK=ON" 65 65 "-DUSE_SCIP=OFF" 66 - "-DPython3_EXECUTABLE=${python.pythonForBuild.interpreter}" 66 + "-DPython3_EXECUTABLE=${python.pythonOnBuildForHost.interpreter}" 67 67 ] ++ lib.optionals stdenv.isDarwin [ "-DCMAKE_MACOSX_RPATH=OFF" ]; 68 68 nativeBuildInputs = [ 69 69 cmake 70 70 ensureNewerSourcesForZipFilesHook 71 71 pkg-config 72 - python.pythonForBuild 72 + python.pythonOnBuildForHost 73 73 swig4 74 74 unzip 75 - ] ++ (with python.pythonForBuild.pkgs; [ 75 + ] ++ (with python.pythonOnBuildForHost.pkgs; [ 76 76 pip 77 77 mypy-protobuf 78 78 ]);
+1 -1
pkgs/development/libraries/tracker/default.nix
··· 68 68 wrapGAppsNoGuiHook 69 69 gi-docgen 70 70 graphviz 71 - (python3.pythonForBuild.withPackages (p: [ p.pygobject3 ])) 71 + (python3.pythonOnBuildForHost.withPackages (p: [ p.pygobject3 ])) 72 72 ] ++ lib.optionals withIntrospection [ 73 73 gobject-introspection 74 74 vala
+1 -1
pkgs/development/python-modules/asyncinotify/default.nix
··· 22 22 ]; 23 23 24 24 checkPhase = '' 25 - ${python.pythonForBuild.interpreter} ${src}/test.py 25 + ${python.pythonOnBuildForHost.interpreter} ${src}/test.py 26 26 ''; 27 27 pythonImportsCheck = ["asyncinotify"]; 28 28
+1 -1
pkgs/development/python-modules/bash_kernel/default.nix
··· 46 46 ''; 47 47 48 48 postInstall = '' 49 - ${python.pythonForBuild.interpreter} -m bash_kernel.install --prefix $out 49 + ${python.pythonOnBuildForHost.interpreter} -m bash_kernel.install --prefix $out 50 50 ''; 51 51 52 52 meta = with lib; {
+1 -1
pkgs/development/python-modules/bashlex/default.nix
··· 20 20 21 21 # workaround https://github.com/idank/bashlex/issues/51 22 22 preBuild = '' 23 - ${python.pythonForBuild.interpreter} -c 'import bashlex' 23 + ${python.pythonOnBuildForHost.interpreter} -c 'import bashlex' 24 24 ''; 25 25 26 26 nativeCheckInputs = [
+1 -1
pkgs/development/python-modules/catboost/default.nix
··· 38 38 runHook preBuild 39 39 40 40 # these arguments must set after bdist_wheel 41 - ${python.pythonForBuild.interpreter} setup.py bdist_wheel --no-widget --prebuilt-extensions-build-root-dir=${lib.getDev catboost} 41 + ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel --no-widget --prebuilt-extensions-build-root-dir=${lib.getDev catboost} 42 42 43 43 runHook postBuild 44 44 '';
+1 -1
pkgs/development/python-modules/cypari2/default.nix
··· 42 42 43 43 nativeBuildInputs = [ 44 44 pari 45 - python.pythonForBuild.pkgs.pip 45 + python.pythonOnBuildForHost.pkgs.pip 46 46 ]; 47 47 48 48 buildInputs = [
+1 -1
pkgs/development/python-modules/dbus/default.nix
··· 23 23 ''; 24 24 25 25 configureFlags = [ 26 - "PYTHON=${python.pythonForBuild.interpreter}" 26 + "PYTHON=${python.pythonOnBuildForHost.interpreter}" 27 27 ]; 28 28 29 29 nativeBuildInputs = [ pkg-config ];
+1 -1
pkgs/development/python-modules/gst-python/default.nix
··· 48 48 mesonFlags = [ 49 49 "-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides" 50 50 # Exec format error during configure 51 - "-Dpython=${python.pythonForBuild.interpreter}" 51 + "-Dpython=${python.pythonOnBuildForHost.interpreter}" 52 52 ]; 53 53 54 54 doCheck = true;
+1 -1
pkgs/development/python-modules/llfuse/default.nix
··· 37 37 ''; 38 38 39 39 preBuild = '' 40 - ${python.pythonForBuild.interpreter} setup.py build_cython 40 + ${python.pythonOnBuildForHost.interpreter} setup.py build_cython 41 41 ''; 42 42 43 43 # On Darwin, the test requires macFUSE to be installed outside of Nix.
+1 -1
pkgs/development/python-modules/manimpango/default.nix
··· 49 49 ''; 50 50 51 51 preBuild = '' 52 - ${python.pythonForBuild.interpreter} setup.py build_ext --inplace 52 + ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace 53 53 ''; 54 54 55 55 pythonImportsCheck = [
+1 -1
pkgs/development/python-modules/mutagen/default.nix
··· 36 36 ]; 37 37 38 38 postInstall = '' 39 - ${python.pythonForBuild.interpreter} setup.py build_sphinx --build-dir=$doc 39 + ${python.pythonOnBuildForHost.interpreter} setup.py build_sphinx --build-dir=$doc 40 40 ''; 41 41 42 42 nativeCheckInputs = [
+3 -3
pkgs/development/python-modules/nose/default.nix
··· 27 27 ''; 28 28 29 29 preBuild = lib.optionalString (isPy3k) '' 30 - ${python.pythonForBuild}/bin/2to3 -wn nose functional_tests unit_tests 30 + ${python.pythonOnBuildForHost}/bin/2to3 -wn nose functional_tests unit_tests 31 31 ''; 32 32 33 33 propagatedBuildInputs = [ coverage ]; 34 34 35 35 doCheck = false; # lot's of transient errors, too much hassle 36 36 checkPhase = if isPy3k then '' 37 - ${python.pythonForBuild.interpreter} setup.py build_tests 37 + ${python.pythonOnBuildForHost.interpreter} setup.py build_tests 38 38 '' else "" + '' 39 39 rm functional_tests/test_multiprocessing/test_concurrent_shared.py* # see https://github.com/nose-devs/nose/commit/226bc671c73643887b36b8467b34ad485c2df062 40 - ${python.pythonForBuild.interpreter} selftest.py 40 + ${python.pythonOnBuildForHost.interpreter} selftest.py 41 41 ''; 42 42 43 43 meta = with lib; {
+1 -1
pkgs/development/python-modules/nose3/default.nix
··· 24 24 doCheck = !isPyPy && !stdenv.isDarwin && !isPy311; 25 25 26 26 checkPhase = '' 27 - ${python.pythonForBuild.interpreter} selftest.py 27 + ${python.pythonOnBuildForHost.interpreter} selftest.py 28 28 ''; 29 29 30 30 meta = with lib; {
+1 -1
pkgs/development/python-modules/pyatspi/default.nix
··· 18 18 ]; 19 19 20 20 configureFlags = [ 21 - "PYTHON=${python.pythonForBuild.interpreter}" 21 + "PYTHON=${python.pythonOnBuildForHost.interpreter}" 22 22 ]; 23 23 24 24 postPatch = ''
+1 -1
pkgs/development/python-modules/pybind11/default.nix
··· 17 17 name = "pybind11-setup-hook"; 18 18 substitutions = { 19 19 out = placeholder "out"; 20 - pythonInterpreter = python.pythonForBuild.interpreter; 20 + pythonInterpreter = python.pythonOnBuildForHost.interpreter; 21 21 pythonIncludeDir = "${python}/include/python${python.pythonVersion}"; 22 22 pythonSitePackages = "${python}/${python.sitePackages}"; 23 23 };
+1 -1
pkgs/development/python-modules/pycairo/default.nix
··· 46 46 # This is only used for figuring out what version of Python is in 47 47 # use, and related stuff like figuring out what the install prefix 48 48 # should be, but it does need to be able to execute Python code. 49 - "-Dpython=${python.pythonForBuild.interpreter}" 49 + "-Dpython=${python.pythonOnBuildForHost.interpreter}" 50 50 ]; 51 51 52 52 meta = with lib; {
+1 -1
pkgs/development/python-modules/pycuda/default.nix
··· 32 32 }; 33 33 34 34 preConfigure = with lib.versions; '' 35 - ${python.pythonForBuild.interpreter} configure.py --boost-inc-dir=${boost.dev}/include \ 35 + ${python.pythonOnBuildForHost.interpreter} configure.py --boost-inc-dir=${boost.dev}/include \ 36 36 --boost-lib-dir=${boost}/lib \ 37 37 --no-use-shipped-boost \ 38 38 --boost-python-libname=boost_python${major python.version}${minor python.version} \
+1 -1
pkgs/development/python-modules/pyfuse3/default.nix
··· 44 44 propagatedBuildInputs = [ trio ]; 45 45 46 46 preBuild = '' 47 - ${python.pythonForBuild.interpreter} setup.py build_cython 47 + ${python.pythonOnBuildForHost.interpreter} setup.py build_cython 48 48 ''; 49 49 50 50 nativeCheckInputs = [
+1 -1
pkgs/development/python-modules/pygame/default.nix
··· 57 57 ]; 58 58 59 59 preConfigure = '' 60 - ${python.pythonForBuild.interpreter} buildconfig/config.py 60 + ${python.pythonOnBuildForHost.interpreter} buildconfig/config.py 61 61 ''; 62 62 63 63 checkPhase = ''
+2 -2
pkgs/development/python-modules/pygeos/default.nix
··· 30 30 # for the package to function. Therefore override of buildPhase was 31 31 # necessary. 32 32 buildPhase = '' 33 - ${python.pythonForBuild.interpreter} setup.py build_ext --inplace 34 - ${python.pythonForBuild.interpreter} setup.py bdist_wheel 33 + ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace 34 + ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel 35 35 ''; 36 36 37 37 nativeCheckInputs = [
+1 -1
pkgs/development/python-modules/pygobject/3.nix
··· 57 57 # This is only used for figuring out what version of Python is in 58 58 # use, and related stuff like figuring out what the install prefix 59 59 # should be, but it does need to be able to execute Python code. 60 - "-Dpython=${python.pythonForBuild.interpreter}" 60 + "-Dpython=${python.pythonOnBuildForHost.interpreter}" 61 61 ]; 62 62 63 63 passthru = {
+1 -1
pkgs/development/python-modules/pymunk/default.nix
··· 31 31 ]; 32 32 33 33 preBuild = '' 34 - ${python.pythonForBuild.interpreter} setup.py build_ext --inplace 34 + ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace 35 35 ''; 36 36 37 37 nativeCheckInputs = [
+1 -1
pkgs/development/python-modules/pyside2/default.nix
··· 65 65 66 66 postInstall = '' 67 67 cd ../../.. 68 - ${python.pythonForBuild.interpreter} setup.py egg_info --build-type=pyside2 68 + ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=pyside2 69 69 cp -r PySide2.egg-info $out/${python.sitePackages}/ 70 70 ''; 71 71
+1 -1
pkgs/development/python-modules/pyside6/default.nix
··· 83 83 84 84 postInstall = '' 85 85 cd ../../.. 86 - ${python.pythonForBuild.interpreter} setup.py egg_info --build-type=pyside6 86 + ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=pyside6 87 87 cp -r PySide6.egg-info $out/${python.sitePackages}/ 88 88 ''; 89 89
+2 -2
pkgs/development/python-modules/pysvn/default.nix
··· 37 37 38 38 preConfigure = '' 39 39 cd Source 40 - ${python.pythonForBuild.interpreter} setup.py backport 41 - ${python.pythonForBuild.interpreter} setup.py configure \ 40 + ${python.pythonOnBuildForHost.interpreter} setup.py backport 41 + ${python.pythonOnBuildForHost.interpreter} setup.py configure \ 42 42 --apr-inc-dir=${apr.dev}/include \ 43 43 --apu-inc-dir=${aprutil.dev}/include \ 44 44 --pycxx-dir=${pycxx.dev}/include \
+2 -2
pkgs/development/python-modules/python-efl/default.nix
··· 31 31 ''; 32 32 33 33 preBuild = '' 34 - ${python.pythonForBuild.interpreter} setup.py build_ext 34 + ${python.pythonOnBuildForHost.interpreter} setup.py build_ext 35 35 ''; 36 36 37 37 installPhase = '' 38 - ${python.pythonForBuild.interpreter} setup.py install --prefix=$out --single-version-externally-managed 38 + ${python.pythonOnBuildForHost.interpreter} setup.py install --prefix=$out --single-version-externally-managed 39 39 ''; 40 40 41 41 doCheck = false;
+1 -1
pkgs/development/python-modules/python-fontconfig/default.nix
··· 17 17 nativeBuildInputs = [ cython ]; 18 18 19 19 preBuild = '' 20 - ${python.pythonForBuild.interpreter} setup.py build_ext -i 20 + ${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i 21 21 ''; 22 22 23 23 checkPhase = ''
+1 -1
pkgs/development/python-modules/pywayland/default.nix
··· 24 24 nativeCheckInputs = [ pytestCheckHook ]; 25 25 26 26 postBuild = '' 27 - ${python.pythonForBuild.interpreter} pywayland/ffi_build.py 27 + ${python.pythonOnBuildForHost.interpreter} pywayland/ffi_build.py 28 28 ''; 29 29 30 30 # Tests need this to create sockets
+1 -1
pkgs/development/python-modules/pywlroots/default.nix
··· 37 37 nativeCheckInputs = [ pytestCheckHook ]; 38 38 39 39 postBuild = '' 40 - ${python.pythonForBuild.interpreter} wlroots/ffi_build.py 40 + ${python.pythonOnBuildForHost.interpreter} wlroots/ffi_build.py 41 41 ''; 42 42 43 43 pythonImportsCheck = [ "wlroots" ];
+1 -1
pkgs/development/python-modules/recursive-pth-loader/default.nix
··· 10 10 11 11 patchPhase = "cat ${./sitecustomize.py} > sitecustomize.py"; 12 12 13 - buildPhase = "${python.pythonForBuild}/bin/${python.pythonForBuild.executable} -m compileall ."; 13 + buildPhase = "${python.pythonOnBuildForHost}/bin/${python.pythonOnBuildForHost.executable} -m compileall ."; 14 14 15 15 installPhase = 16 16 ''
+1 -1
pkgs/development/python-modules/redis-om/default.nix
··· 49 49 ]; 50 50 51 51 preBuild = '' 52 - ${python.pythonForBuild.interpreter} make_sync.py 52 + ${python.pythonOnBuildForHost.interpreter} make_sync.py 53 53 ''; 54 54 55 55 nativeCheckInputs = [
+1 -1
pkgs/development/python-modules/shiboken2/default.nix
··· 45 45 46 46 postInstall = '' 47 47 cd ../../.. 48 - ${python.pythonForBuild.interpreter} setup.py egg_info --build-type=shiboken2 48 + ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=shiboken2 49 49 cp -r shiboken2.egg-info $out/${python.sitePackages}/ 50 50 rm $out/bin/shiboken_tool.py 51 51 '';
+1 -1
pkgs/development/python-modules/shiboken6/default.nix
··· 61 61 62 62 postInstall = '' 63 63 cd ../../.. 64 - ${python.pythonForBuild.interpreter} setup.py egg_info --build-type=shiboken6 64 + ${python.pythonOnBuildForHost.interpreter} setup.py egg_info --build-type=shiboken6 65 65 cp -r shiboken6.egg-info $out/${python.sitePackages}/ 66 66 ''; 67 67
+1 -1
pkgs/development/python-modules/torch/default.nix
··· 228 228 229 229 preBuild = '' 230 230 export MAX_JOBS=$NIX_BUILD_CORES 231 - ${python.pythonForBuild.interpreter} setup.py build --cmake-only 231 + ${python.pythonOnBuildForHost.interpreter} setup.py build --cmake-only 232 232 ${cmake}/bin/cmake build 233 233 ''; 234 234
+2 -2
pkgs/development/python-modules/wxPython/4.2.nix
··· 102 102 export PATH="${wxGTK}/bin:$PATH" 103 103 export SDL_CONFIG="${SDL.dev}/bin/sdl-config" 104 104 105 - ${python.pythonForBuild.interpreter} build.py -v --use_syswx dox etg sip --nodoc build_py 105 + ${python.pythonOnBuildForHost.interpreter} build.py -v --use_syswx dox etg sip --nodoc build_py 106 106 107 107 runHook postBuild 108 108 ''; ··· 111 111 installPhase = '' 112 112 runHook preInstall 113 113 114 - ${python.pythonForBuild.interpreter} setup.py install --skip-build --prefix=$out 114 + ${python.pythonOnBuildForHost.interpreter} setup.py install --skip-build --prefix=$out 115 115 wrapPythonPrograms 116 116 117 117 runHook postInstall
+1 -1
pkgs/development/python-modules/xattr/default.nix
··· 26 26 doCheck = false; 27 27 28 28 postBuild = '' 29 - ${python.pythonForBuild.interpreter} -m compileall -f xattr 29 + ${python.pythonOnBuildForHost.interpreter} -m compileall -f xattr 30 30 ''; 31 31 32 32 pythonImportsCheck = [
+1 -1
pkgs/development/python-modules/xkbcommon/default.nix
··· 24 24 nativeCheckInputs = [ pytestCheckHook ]; 25 25 26 26 postBuild = '' 27 - ${python.pythonForBuild.interpreter} xkbcommon/ffi_build.py 27 + ${python.pythonOnBuildForHost.interpreter} xkbcommon/ffi_build.py 28 28 ''; 29 29 30 30 pythonImportsCheck = [ "xkbcommon" ];
+3 -3
pkgs/development/python2-modules/bootstrapped-pip/default.nix
··· 45 45 46 46 echo "Building setuptools wheel..." 47 47 pushd setuptools 48 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 48 + ${python.pythonOnBuildForHost.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 49 49 popd 50 50 51 51 echo "Building wheel wheel..." 52 52 pushd wheel 53 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 53 + ${python.pythonOnBuildForHost.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 54 54 popd 55 55 56 56 echo "Building pip wheel..." 57 57 pushd pip 58 - ${python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 58 + ${python.pythonOnBuildForHost.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache . 59 59 popd 60 60 ''; 61 61
+1 -1
pkgs/development/python2-modules/pycairo/default.nix
··· 42 42 # This is only used for figuring out what version of Python is in 43 43 # use, and related stuff like figuring out what the install prefix 44 44 # should be, but it does need to be able to execute Python code. 45 - "-Dpython=${python.pythonForBuild.interpreter}" 45 + "-Dpython=${python.pythonOnBuildForHost.interpreter}" 46 46 ]; 47 47 48 48 meta = with lib; {
+2 -2
pkgs/development/python2-modules/setuptools/default.nix
··· 29 29 ]; 30 30 31 31 buildPhase = '' 32 - ${python.pythonForBuild.interpreter} bootstrap.py 33 - ${python.pythonForBuild.interpreter} setup.py sdist --formats=gztar 32 + ${python.pythonOnBuildForHost.interpreter} bootstrap.py 33 + ${python.pythonOnBuildForHost.interpreter} setup.py sdist --formats=gztar 34 34 35 35 # Here we untar the sdist and retar it in order to control the timestamps 36 36 # of all the files included
+1 -1
pkgs/development/tools/fdroidserver/default.nix
··· 47 47 ''; 48 48 49 49 preConfigure = '' 50 - ${python3.pythonForBuild.interpreter} setup.py compile_catalog 50 + ${python3.pythonOnBuildForHost.interpreter} setup.py compile_catalog 51 51 ''; 52 52 53 53 postInstall = ''
+1 -1
pkgs/development/tools/misc/ycmd/default.nix
··· 29 29 30 30 buildPhase = '' 31 31 export EXTRA_CMAKE_ARGS="-DPATH_TO_LLVM_ROOT=${llvmPackages.libllvm} -DUSE_SYSTEM_ABSEIL=true" 32 - ${python.pythonForBuild.interpreter} build.py --system-libclang --clang-completer --ninja 32 + ${python.pythonOnBuildForHost.interpreter} build.py --system-libclang --clang-completer --ninja 33 33 ''; 34 34 35 35 dontConfigure = true;
+1 -1
pkgs/os-specific/linux/bolt/default.nix
··· 76 76 dbus 77 77 gobject-introspection 78 78 umockdev 79 - (python3.pythonForBuild.withPackages 79 + (python3.pythonOnBuildForHost.withPackages 80 80 (p: [ p.pygobject3 p.dbus-python p.python-dbusmock ])) 81 81 ]; 82 82
+1 -1
pkgs/os-specific/linux/libnl/default.nix
··· 21 21 22 22 postBuild = lib.optionalString (pythonSupport) '' 23 23 cd python 24 - ${python.pythonForBuild.interpreter} setup.py install --prefix=../pythonlib 24 + ${python.pythonOnBuildForHost.interpreter} setup.py install --prefix=../pythonlib 25 25 cd - 26 26 ''; 27 27
+1 -1
pkgs/os-specific/linux/libnvme/default.nix
··· 46 46 ninja 47 47 perl # for kernel-doc 48 48 pkg-config 49 - python3.pythonForBuild 49 + python3.pythonOnBuildForHost 50 50 swig 51 51 ]; 52 52
+1 -1
pkgs/os-specific/linux/libselinux/default.nix
··· 64 64 ] ++ optionals stdenv.hostPlatform.isStatic [ 65 65 "DISABLE_SHARED=y" 66 66 ] ++ optionals enablePython [ 67 - "PYTHON=${python3.pythonForBuild.interpreter}" 67 + "PYTHON=${python3.pythonOnBuildForHost.interpreter}" 68 68 "PYTHONLIBDIR=$(py)/${python3.sitePackages}" 69 69 ]; 70 70
+1 -1
pkgs/os-specific/linux/power-profiles-daemon/default.nix
··· 53 53 wrapGAppsNoGuiHook 54 54 python3.pkgs.wrapPython 55 55 # checkInput but cheked for during the configuring 56 - (python3.pythonForBuild.withPackages (ps: with ps; [ 56 + (python3.pythonOnBuildForHost.withPackages (ps: with ps; [ 57 57 pygobject3 58 58 dbus-python 59 59 python-dbusmock
+1 -1
pkgs/servers/home-assistant/intents.nix
··· 50 50 postInstall = '' 51 51 pushd intents 52 52 # https://github.com/home-assistant/intents/blob/main/script/package#L18 53 - ${python.pythonForBuild.interpreter} -m script.intentfest merged_output $out/${python.sitePackages}/home_assistant_intents/data 53 + ${python.pythonOnBuildForHost.interpreter} -m script.intentfest merged_output $out/${python.sitePackages}/home_assistant_intents/data 54 54 popd 55 55 ''; 56 56
+3 -3
pkgs/servers/uwsgi/default.nix
··· 24 24 }; 25 25 26 26 pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else "3"}" { 27 - interpreter = pkg.pythonForBuild.interpreter; 27 + interpreter = pkg.pythonOnBuildForHost.interpreter; 28 28 path = "plugins/python"; 29 29 inputs = [ pkg ncurses ]; 30 30 install = '' 31 31 install -Dm644 uwsgidecorators.py $out/${pkg.sitePackages}/uwsgidecorators.py 32 - ${pkg.pythonForBuild.executable} -m compileall $out/${pkg.sitePackages}/ 33 - ${pkg.pythonForBuild.executable} -O -m compileall $out/${pkg.sitePackages}/ 32 + ${pkg.pythonOnBuildForHost.executable} -m compileall $out/${pkg.sitePackages}/ 33 + ${pkg.pythonOnBuildForHost.executable} -O -m compileall $out/${pkg.sitePackages}/ 34 34 ''; 35 35 }; 36 36
+1 -1
pkgs/tools/audio/tts/default.nix
··· 103 103 # cython modules are not installed for some reasons 104 104 ( 105 105 cd TTS/tts/utils/monotonic_align 106 - ${python.pythonForBuild.interpreter} setup.py install --prefix=$out 106 + ${python.pythonOnBuildForHost.interpreter} setup.py install --prefix=$out 107 107 ) 108 108 ''; 109 109
+1 -1
pkgs/tools/backup/s3ql/default.nix
··· 18 18 ]; 19 19 20 20 preBuild = '' 21 - ${python3Packages.python.pythonForBuild.interpreter} ./setup.py build_cython build_ext --inplace 21 + ${python3Packages.python.pythonOnBuildForHost.interpreter} ./setup.py build_cython build_ext --inplace 22 22 ''; 23 23 24 24 checkPhase = ''
+1 -1
pkgs/tools/networking/networkmanager/default.nix
··· 53 53 }: 54 54 55 55 let 56 - pythonForDocs = python3.pythonForBuild.withPackages (pkgs: with pkgs; [ pygobject3 ]); 56 + pythonForDocs = python3.pythonOnBuildForHost.withPackages (pkgs: with pkgs; [ pygobject3 ]); 57 57 in 58 58 stdenv.mkDerivation rec { 59 59 pname = "networkmanager";
+1 -1
pkgs/tools/security/fail2ban/default.nix
··· 43 43 substituteInPlace setup.py --replace /usr/share/doc/ share/doc/ 44 44 45 45 # see https://github.com/NixOS/nixpkgs/issues/4968 46 - ${python3.pythonForBuild.interpreter} setup.py install_data --install-dir=$out --root=$out 46 + ${python3.pythonOnBuildForHost.interpreter} setup.py install_data --install-dir=$out --root=$out 47 47 ''; 48 48 49 49 postInstall =
+1 -1
pkgs/tools/system/minijail/tools.nix
··· 21 21 make libconstants.gen.c libsyscalls.gen.c 22 22 ${targetClang}/bin/${targetClang.targetPrefix}cc -S -emit-llvm \ 23 23 libconstants.gen.c libsyscalls.gen.c 24 - ${python.pythonForBuild.interpreter} tools/generate_constants_json.py \ 24 + ${python.pythonOnBuildForHost.interpreter} tools/generate_constants_json.py \ 25 25 --output constants.json \ 26 26 libconstants.gen.ll libsyscalls.gen.ll 27 27 '';