# Overriding version, can't find new cargoHash

**URL:** https://discourse.nixos.org/t/overriding-version-cant-find-new-cargohash/31502
**Category:** Help
**Created:** [August 9, 2023, 12:41pm UTC](https://discourse.nixos.org/t/overriding-version-cant-find-new-cargohash/31502 "2023-08-09T12:41:27Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ookhoi](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ookhoi/32/31960_2.png) [@ookhoi](https://discourse.nixos.org/u/ookhoi)
#### Post date: [May 24, 2025, 3:13pm UTC](https://discourse.nixos.org/t/overriding-version-cant-find-new-cargohash/31502/7 "2025-05-24T15:13:03Z")

</div>

The solution in [Overriding version, can't find new cargoHash - #5 by supermarin](https://discourse.nixos.org/t/overriding-version-cant-find-new-cargohash/31502/5) did not work for me. Kept getting `ERROR: cargoHash or cargoSha256 is out of date`.

I found a newer(?) solution in [Nixpkgs overlay for mpd-discord-rpc is no longer working - #2 by perchun](https://discourse.nixos.org/t/nixpkgs-overlay-for-mpd-discord-rpc-is-no-longer-working/59982/2)

My overlay in home-manager for a newer version of [GitHub - elizagamedev/mujmap: Bridge for synchronizing email and tags between JMAP and notmuch](https://github.com/elizagamedev/mujmap) and applying a patch:

```
nixpkgs = {
  overlays = [
    (final: prev: {
      mujmap = prev.mujmap.overrideAttrs (oldAttrs: rec {
        src = prev.fetchFromGitHub {
          owner = "elizagamedev";
          repo = "mujmap";
          rev = "5f700af890769185ad99d4aae9f53496bb2aa6f2";
          hash = "sha256-mSJ6uyZSaWWdhqiYNcIm7lC6PZZrZ8PSdxfu+s9MZD0=";
        };
        cargoDeps = final.rustPlatform.fetchCargoVendor {
          inherit src;
          hash = "sha256-snCDGg7Nx3ckSPNFxvu8nhVr8SO3sjWIFA0WCRqH224=";
        };
        patches = (oldAttrs.patches or []) ++ [./mujmap.patch];
      });
    })
  ];
};

```

---

_[View the full topic](https://discourse.nixos.org/t/overriding-version-cant-find-new-cargohash/31502)._
