anchor.diff:      owner = "Rigellute";
       repo = "spotify-tui";
       rev = "v${version}";
  -    sha256 = "sha256-L5gg6tjQuYoAC89XfKE38KCFONwSAwfNoFEUPH4jNAI=";
  +    hash = "sha256-L5gg6tjQuYoAC89XfKE38KCFONwSAwfNoFEUPH4jNAI=";
     };
   
  -  # Use patched rspotify
     cargoPatches = [
  +    # Use patched rspotify
       ./Cargo.lock.patch
  +
  +    # Needed so that the patch below it applies.
  +    (fetchpatch {
  +      name = "update-dirs.patch";
  +      url = "https://github.com/Rigellute/spotify-tui/commit/3881defc1ed0bcf79df1aef4836b857f64be657c.patch";
  +      hash = "sha256-OGqiYLFojMwR3RgKbddXxPDiAdzPySnscVVsVmTT7t4=";
  +    })
  +
  +    # https://github.com/Rigellute/spotify-tui/pull/990
  +    (fetchpatch {
  +      name = "update-socket2-for-rust-1.64.patch";
  +      url = "https://github.com/Rigellute/spotify-tui/commit/14df9419cf72da13f3b55654686a95647ea9dfea.patch";
  +      hash = "sha256-craY6UwmHDdxih3nZBdPkNJtQ6wvVgf09Ovqdxi0JZo=";
  +    })
     ];
  +
     patches = [
  +    # Use patched rspotify
       ./Cargo.toml.patch
     ];
   
  
positive.code: { lib, stdenv, fetchFromGitHub, fetchCrate, rustPlatform, installShellFiles, pkg-config, openssl, python3, libxcb, AppKit, Security }:
  
  rustPlatform.buildRustPackage rec {
    pname = "spotify-tui";
  
negative.code:     ln -s ${rspotify} ./rspotify-${rspotify.version}
    '';
  
    cargoHash = "sha256-aZJ6Q/rvqrv+wvQw2eKFPnSROhI5vXPvr5pu1hwtZKA=";
  
    nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config python3 ];
    buildInputs = [ ]
  