Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
- Unstable (25.11)
Steps to reproduce
user@host:~/.config/dotfiles/home-manager$ nix build nixpkgs#bash --no-substitute --print-build-logs --rebuild
bash>
bash> trying https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz
bash> % Total % Received % Xferd Average Speed Time Time Time Current
bash> Dload Upload Total Spent Left Speed
bash> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
bash> 100 10.8M 100 10.8M 0 0 3514k 0 0:00:03 0:00:03 --:--:-- 5636k
error: hash mismatch in fixed-output derivation '/nix/store/phg0qkl545h3jilmf17xgp3gjw43xzfl-bash-5.3.tar.gz.drv':
specified: sha256-Yt1JxEw5ntGz9/cx6Hp4IzTYNPCOCYo18sh1R9Xbsmk=
got: sha256-DVzYaWX4aaJs9k9Lcb57lvkKO6iz104n6OnZ1VUPMbo=
error: 1 dependencies of derivation '/nix/store/fw5vnxnkaj9j0pr6x3nl33d46a5kh93j-bash-interactive-5.3p0.drv' failed to build
Can Hydra reproduce this build failure?
No, Hydra cannot reproduce this build failure.
Link to Hydra build job
Relevant log output
user@host:~/.config/dotfiles/home-manager$ nix build nixpkgs#bash --no-substitute --print-build-logs --rebuild
bash>
bash> trying https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz
bash> % Total % Received % Xferd Average Speed Time Time Time Current
bash> Dload Upload Total Spent Left Speed
bash> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
bash> 100 10.8M 100 10.8M 0 0 3514k 0 0:00:03 0:00:03 --:--:-- 5636k
error: hash mismatch in fixed-output derivation '/nix/store/phg0qkl545h3jilmf17xgp3gjw43xzfl-bash-5.3.tar.gz.drv':
specified: sha256-Yt1JxEw5ntGz9/cx6Hp4IzTYNPCOCYo18sh1R9Xbsmk=
got: sha256-DVzYaWX4aaJs9k9Lcb57lvkKO6iz104n6OnZ1VUPMbo=
error: 1 dependencies of derivation '/nix/store/fw5vnxnkaj9j0pr6x3nl33d46a5kh93j-bash-interactive-5.3p0.drv' failed to buildAdditional context
It looks like the file bash-5.3.tar.gz was updated on 2025-07-30 10:07, which is after the package was updated in nixpkgs. The updated file has the different hash sha256-DVzYaWX4aaJs9k9Lcb57lvkKO6iz104n6OnZ1VUPMbo= compared to the one currently in master. The last Hydra build (as of now) occurred at 2025-07-28 13:06:23 (before the file was updated) and completed successfully. The issue only arises with --no-substitute, otherwise the cached build is fetched correctly.
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.8.0-64-generic, Ubuntu, 22.04.5 LTS (Jammy Jellyfish), nobuild - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.28.3 - channels(root):
"nixpkgs" - nixpkgs:
/nix/store/pblssrhzwbh37byhw2m5kj51afp5ygvr-nixpkgs/nixpkgs
Notify maintainers
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.
Reacted by austen-aer, Kenichi Kamiya, Absolutex, carschandler and 0x0lor1n
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
jackwilsdon commentedon Jul 31, 2025
Seems like it's just translation file changes:
amarshall commentedon Aug 1, 2025
Seems intentional: https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00156.html
bash: update hash following upstream re-release
trofi commentedon Aug 1, 2025
Great find! Proposed hash update as:
Sigmanificient commentedon Aug 14, 2025
Can this be closed now?
ryand56 commentedon Aug 14, 2025
Fix is not in master yet, still waiting on staging-next PR
carschandler commentedon Aug 18, 2025
@ryand56 what's required to go from staging-next to master? I'm not super familiar with all the approvals required but my config has been broken for a bit due to this (tried setting up an overlay but couldn't get the flake to actually use it).
ryand56 commentedon Aug 18, 2025
It manually gets merged like in #432489
yehorb commentedon Aug 23, 2025
It seems that the fix is already in the master branch, merged with the #432489. Should I close the issue now?
shielded-nate commentedon Aug 30, 2025
Hi, I've run into this issue. Before I try updating to latest main, I wanted to learn how you discovered the source of
bash-5.3-old.tar.gzso that next time I see a hash check failure I know how to investigate the change.shielded-nate commentedon Aug 30, 2025
BTW, I get a different hash for the
openbsd.orgurl:shielded-nate commentedon Aug 30, 2025
Ah, here's why my hash is different:
So did @jackwilsdon just fetch a different mirror's URL and luck out on timing that it hadn't received the bash dev's new push? -and then I missed that timing window?
I'd really like to learn more of this after-the-fact forensics on hash failures, because I'm highly allergic to software in my supply chain getting silently patched and I want to leverage nix to protect me from that to some degree.
BTW- a
nix flake updatehas moved me past that hash failure (to my own flake issues) so just pointing out the updated hash has rolled out togithub:NixOS/nixpkgs/nixpkgs-unstable, so I believe this ticket is resolved.carschandler commentedon Aug 30, 2025
Yes