Repository navigation
Description
Nixpkgs version
- Unstable (25.11)
Steps to reproduce
nix build github:nixos/nixpkgs?ref=e989c235225cf5a17f9142ec9fab4ec6fcc8c2b6#legacyPackages.x86_64-linux.immich
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
Relevant log output
error: hash mismatch in fixed-output derivation '/nix/store/6j570h5ilff9kmwm17y1dmyll621nf53-immich-geodata.drv':
specified: sha256-jfC/FgfeSz1tdtYc1EqQ/HJw5LlYQSyGntPuXv24JVY=
got: sha256-1ZvFkaNdG5s25YwP5CsblvIFT4rlvNrCBiPNR+lAPTQ=
error: 1 dependencies of derivation '/nix/store/jpaair6wgj9d3kj4ywwq5ricla9mjd5d-immich-1.137.3.drv' failed to buildAdditional context
The dependency hash changed, I'm not sure how http://archive.org/wayback/available?url=http://download.geonames.org/export/dump/cities500.zip gets released.
I do plan to put up a PR fix of updating the SHA and timestamp of geodata. I don't have enough context to offer longer term solution.
System metadata
- system: `"x86_64-linux"`
- host os: `Linux 6.16.0, NixOS, 25.11 (Xantusia), 25.11.20250811.59ca61e`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.28.4`
- nixpkgs: `/nix/store/qdpngwc9f0rr4ph265nwwz4hmfq8xjz9-source`
Notify maintainers
@dotlambda
@jvanbruegge
@Scrumplex
@Titaniumtown
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.
Activity
ldare373 commentedon Aug 13, 2025
I'm now getting the following build error with
nixos-unstable 005433bCurl shows that some of the wayback machine URLs 301 redirect to different snapshots (maybe the latest one it can find), which might explain why the hash keeps changing.
xanderio commentedon Aug 13, 2025
Maybe we should switch to fetching this data one service startup?
ldare373 commentedon Aug 13, 2025
That would work. I was also thinking we could add a timestamp per-url to
sources.json.Fetching at startup could fail at runtime, but would also make maintaining the package easier and wouldn't need to use archive.org.
dotlambda commentedon Aug 13, 2025
fixed by #433127
dotlambda commentedon Aug 13, 2025
Feel free to open a general issue about the unreliability of
immich.geodata.It would be good to first figure out why this fails but I do indeed think that one timestamp per url should make this more reproducible.