-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Description
Edit: Discovering what happens took a few turns, which is why the initial report is about a failing rust build, which is where I discovered the problem.
This regression was likely introduced in #442540 where the python executable in buildEnv changed and no longer gets NIX_PYTHONPREFIX and NIX_PYTHONPATH, more detail at the bottom in #461884 (comment)
original first issue text
Nixpkgs version
- Unstable (25.11)
Describe the bug
❯ git describe HEAD
25.11-pre-94963-ga40339417f4b
❯ nix-build --attr korrect --eval-system x86_64-linux
trace: evaluation warning: buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05, remove it
these 2 derivations will be built:
/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv
/nix/store/jnm94cchf35rxrrpydsmfw437dnzvkdr-korrect-0.3.3.drv
building '/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv' on 'ssh-ng://rosetta-builder'...
copying 0 paths...
building '/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv'...
Traceback (most recent call last):
File "/nix/store/f2aiivbcplcfk3c30dmjgl0iw96yvwaz-fetch-cargo-vendor-util/bin/fetch-cargo-vendor-util", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
error: build of '/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv' on 'ssh-ng://rosetta-builder' failed: Cannot build '/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/n6gidz7rcxb7drwvhg4k2igfjhwd56d0-korrect-0.3.3-vendor
Last 4 log lines:
> Traceback (most recent call last):
> File "/nix/store/f2aiivbcplcfk3c30dmjgl0iw96yvwaz-fetch-cargo-vendor-util/bin/fetch-cargo-vendor-util", line 16, in <module>
> import requests
> ModuleNotFoundError: No module named 'requests'
For full logs, run:
nix log /nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv
error: builder for '/nix/store/j4x6ym8xky0ms0vqksk7abch3pl3m5ns-korrect-0.3.3-vendor.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/jnm94cchf35rxrrpydsmfw437dnzvkdr-korrect-0.3.3.drv' failed to buildSteps to reproduce
Either checkout the commit mentioned above, or use nixpkgs-review like this: nix-review pr 460269 --systems x86_64-linux
Expected behaviour
Should work?
Screenshots
No response
Relevant log output
See aboveAdditional context
No response
System metadata
❯ nix-shell -p nix-info --run "nix-info -m"
fetching path input 'path:/nix/store/ipyw6f3ah05zxy1imaydg5bmr8qmsiyc-source'
- system:
"aarch64-darwin" - host os:
Darwin 25.1.0, macOS 26.1 - multi-user?:
yes - sandbox:
no - version:
nix-env (Lix, like Nix) 2.93.3 System type: aarch64-darwin Additional system types: aarch64-darwin, x86_64-darwin Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /Users/dwt/.config/nix/nix.conf:/Users/dwt/.nix-profile/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/wags9ajivrc1r24z9qx5glny5n8q5i4g-lix-2.93.3/share - nixpkgs:
/nix/store/ipyw6f3ah05zxy1imaydg5bmr8qmsiyc-source
Notify maintainers
not sure how to find the maintainers, as this is on the rust build toolchain. Other bugs mentioned these people:
- @TomaSajt @JohnRTitor @mmlb as recent editors of relevant files
- @zowoq @winterqt @figsoda as code owners
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.