anchor.diff:    # Update hashes for both Linux and Darwin!
     version = "2.1.46";
   
  +  sources = {
  +    linux = fetchurl {
  +      url = "https://github.com/ankitects/anki/releases/download/${version}/anki-${version}-linux.tar.bz2";
  +      sha256 = "1jzpf42fqhfbjr95k7bpsnf34sfinamp6v828y0sapa4gzfvwkkz";
  +    };
  +    darwin = fetchurl {
  +      url = "https://github.com/ankitects/anki/releases/download/${version}/anki-${version}-mac.dmg";
  +      sha256 = "003cmh5qdj5mkrpm51n0is872faj99dqfkaaxyyrn6x03s36l17y";
  +    };
  +  };
  +
     unpacked = stdenv.mkDerivation {
       inherit pname version;
   
  -    src = fetchurl {
  -      url = "https://github.com/ankitects/anki/releases/download/${version}/anki-${version}-linux.tar.bz2";
  -      sha256 = "1jzpf42fqhfbjr95k7bpsnf34sfinamp6v828y0sapa4gzfvwkkz";
  -    };
  +    src = sources.linux;
   
       installPhase = ''
         runHook preInstall
  
positive.code:       $out/share/
    '';
  
    inherit meta;
  }) else stdenv.mkDerivation {
    inherit pname version;
  
    src = fetchurl {
      url = "https://github.com/ankitects/anki/releases/download/${version}/anki-${version}-mac.dmg";
      sha256 = "003cmh5qdj5mkrpm51n0is872faj99dqfkaaxyyrn6x03s36l17y";
    };
  
    nativeBuildInputs = [ undmg ];
    sourceRoot = ".";
  
negative.code:     platforms = [ "x86_64-linux" "x86_64-darwin" ];
      maintainers = with maintainers; [ atemu ];
    };
  
    passthru = { inherit sources; };
  in
  
  if stdenv.isLinux then buildFHSUserEnv (appimageTools.defaultFhsEnvArgs // {
  