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