You should not try to override fetch*
functions (including cargoDeps
), here is the right overlay
package = pkgs.mpd-discord-rpc.overrideAttrs (oldAttrs: rec {
pname = "mpd-discord-rpc-git";
src = npins.mpd-discord-rpc;
cargoDeps = final.rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-uDru6npxi+NU/KzCa8uoGqvLrJwMB+PGWl7rneyubCY=";
};
});