Error: hash mismatch in fixed-output derivation

I am trying to nixos-rebuild and getting an error which I’ve never come across.

EDIT: I remove freecad and it rebuild’s without issue. I’m on unstable. Anyone else having an issue building it recently?

building Nix...
building the system configuration...
these 29 derivations will be built:
  /nix/store/plnzwrwvcsavm07f4gqyy8l73b71h3bp-system-path.drv
  /nix/store/040ddpldz23p6mfav4w1h1aap0751qcd-dbus-1.drv
  /nix/store/d5vpfgxvjap0kxfn8qd08asg2zc5fhrr-X-Restart-Triggers-polkit.drv
  /nix/store/0rgrfyqcp8ncrp48nqhz4afwy8q2qwq3-unit-polkit.service.drv
  /nix/store/pxzacgi9sfdgrx2k2xk94parbdm4k44d-X-Restart-Triggers-dbus.drv
  /nix/store/18czffcjcgr9byx464r8wclb18p38wrh-unit-dbus.service.drv
  /nix/store/hklw4k9v5zwmqvrkzkpc3gpvvizwfk3c-man-paths.drv
  /nix/store/a9r40vn2775f8ns09j0mcc4pgzvq3m95-man-cache.drv
  /nix/store/1hrjhi87v0s7sphm789kgbbb4rmxbx1y-etc-man_db.conf.drv
  /nix/store/y6mmcirfinn4dvbyw2cqhvbv6s8x9xag-desktops.drv
  /nix/store/cr8marsq17l1lrzm4rgaxq8gkc96npcc-set-environment.drv
  /nix/store/3wha6yigg9yhmdpcwdzskb7nhzgia0rr-etc-profile.drv
  /nix/store/7bj41fdw351zhzb811101lqakwlb47ly-etc-pam-environment.drv
  /nix/store/7wsibxzi5zj70ikkl9gas6xxz900ql1l-unit-dbus.service.drv
  /nix/store/grf4acvqk589d1r3km8ahkwdia8j7rn8-plasma-browser-integration-6.1.5_fish-completions.drv
  /nix/store/8mj730ll3b457ga7xcypvgi1w8vrbcgj-system_fish-completions.drv
  /nix/store/kcnmnpxk5lki27fs8capj69zrqrqmcyq-unit-display-manager.service.drv
  /nix/store/w3wqrbcaiarizcbqgh4fphnkl1gqrm36-unit-accounts-daemon.service.drv
  /nix/store/92x87lrpayjv7a64pf6943a8a3lmmdm8-system-units.drv
  /nix/store/9i9lrrfxpv6qxjc72kak62dq28dhxy8m-etc-fish-nixos-env-preinit.fish.drv
  /nix/store/cryjqhbbc9kp0l9bil1pbxm7knc244vl-source.drv
  /nix/store/m80qyciqxqy64g4vv2nb7ms9frvw5ggr-coin-4.0.3.drv
  /nix/store/b2yrzy8wpbpql8krmazfvbrwzg88mcwz-soqt-2020-12-05-unstable.drv
  /nix/store/hpl3izwfggj9c06wfbaykpw64vg4m5ix-user-units.drv
  /nix/store/n8qslmbj3ics5vc70r2wqa8ja7lmb2pz-python3.11-pivy-0.6.8.drv
  /nix/store/wfma13lqsf97jllarksks70vn9gwkz2b-freecad-0.21.2.drv
  /nix/store/r0przbjhwhmp3mhkbh3b7xi8mwxx8afq-user-environment.drv
  /nix/store/sn6lzwg6zzi7wkn2bcj0589ddk4pcr0s-etc.drv
  /nix/store/i6sslydfiw5jznl1x7bg4lylf052am34-nixos-system-hws-24.11pre681973.99dc8785f6a0.drv
these 5 paths will be fetched (18.76 MiB download, 50.02 MiB unpacked):
  /nix/store/s8jw3i5dzyfklin1a53sg12fsnsv92i0-kdeplasma-addons-6.1.5
  /nix/store/86wc07fzy0zpmblzbf63im3nyk3khjl8-plasma-browser-integration-6.1.5
  /nix/store/mcg2krw5mqqj7wa369s3pxx44zyg5yci-plasma-desktop-6.1.5
  /nix/store/yygl12pgphpgj975ipsa028in279ckvr-plasma-pa-6.1.5
  /nix/store/khq2pjs1r1ym8lkrig0qhy7s85lnz29a-powerdevil-6.1.5
copying path '/nix/store/86wc07fzy0zpmblzbf63im3nyk3khjl8-plasma-browser-integration-6.1.5' from 'https://cache.nixos.org'...
copying path '/nix/store/yygl12pgphpgj975ipsa028in279ckvr-plasma-pa-6.1.5' from 'https://cache.nixos.org'...
copying path '/nix/store/khq2pjs1r1ym8lkrig0qhy7s85lnz29a-powerdevil-6.1.5' from 'https://cache.nixos.org'...
building '/nix/store/y6mmcirfinn4dvbyw2cqhvbv6s8x9xag-desktops.drv'...
building '/nix/store/cryjqhbbc9kp0l9bil1pbxm7knc244vl-source.drv'...
copying path '/nix/store/mcg2krw5mqqj7wa369s3pxx44zyg5yci-plasma-desktop-6.1.5' from 'https://cache.nixos.org'...
building '/nix/store/kcnmnpxk5lki27fs8capj69zrqrqmcyq-unit-display-manager.service.drv'...
building '/nix/store/grf4acvqk589d1r3km8ahkwdia8j7rn8-plasma-browser-integration-6.1.5_fish-completions.drv'...
building '/nix/store/8mj730ll3b457ga7xcypvgi1w8vrbcgj-system_fish-completions.drv'...

trying https://github.com/coin3d/coin/archive/v4.0.3.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
warning: collision between `/nix/store/znwgyxc25yxf1akw8rirj0i624fx0pw1-xorg-server-21.1.13_fish-completions/Xserver.fish' and `/nix/store/ci04rbdbh07w0nyd6vh3vz9hjflvdzia-xwayland-24.1.2_fish-completions/Xserver.fish'
created 482 symlinks in user environment
copying path '/nix/store/s8jw3i5dzyfklin1a53sg12fsnsv92i0-kdeplasma-addons-6.1.5' from 'https://cache.nixos.org'...
100 6780k    0 6780k    0     0  5098k      0 --:--:--  0:00:01 --:--:-- 8502k
unpacking source archive /build/v4.0.3.tar.gz
building '/nix/store/hklw4k9v5zwmqvrkzkpc3gpvvizwfk3c-man-paths.drv'...
building '/nix/store/plnzwrwvcsavm07f4gqyy8l73b71h3bp-system-path.drv'...
error: hash mismatch in fixed-output derivation '/nix/store/cryjqhbbc9kp0l9bil1pbxm7knc244vl-source.drv':
         specified: sha256-EeLfIu+InGy56zqjhbNle4hPjQmzwqzHA4ODBMjb9kg=
            got:    sha256-dUFmcUOdNc3ZFtr+Hnh3Q3OY/JA/WxmiRJiU2RFSSus=
error: 1 dependencies of derivation '/nix/store/m80qyciqxqy64g4vv2nb7ms9frvw5ggr-coin-4.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wfma13lqsf97jllarksks70vn9gwkz2b-freecad-0.21.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r0przbjhwhmp3mhkbh3b7xi8mwxx8afq-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sn6lzwg6zzi7wkn2bcj0589ddk4pcr0s-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i6sslydfiw5jznl1x7bg4lylf052am34-nixos-system-hws-24.11pre681973.99dc8785f6a0.drv' failed to build

Thanks in advance to anyone who helps

Yeah, looks like upstream force-pushed over their tag, you’ll have to wait for someone to get around to fixing it (or fix it yourself, after carefully checking why the source changed, or downgrade): Update request: coin3d 4.0.2 → 4.0.3 · Issue #339784 · NixOS/nixpkgs · GitHub

A quick downstream fix can be done with something like:

{ ... }: {
  nixpkgs.overlays = [
    (final: prev: {
      coin3d = prev.coin3d.overrideAttrs(_: {
        src = # some kind of fetch I'm too lazy to write out
        # see https://github.com/NixOS/nixpkgs/blob/086b448a5d54fd117f4dc2dee55c9f0ff461bdc1/pkgs/development/libraries/coin3d/default.nix#L15
      });
    })
  ];
}