anchor.diff:      homepage = "https://github.com/SkyTemple/skytemple-files";
       description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky";
       license = licenses.gpl3Plus;
  -    maintainers = with maintainers; [ xfix ];
  +    maintainers = with maintainers; [ xfix marius851000 ];
     };
   }
  
positive.code: { lib, buildPythonPackage, fetchFromGitHub, appdirs, explorerscript, ndspy, pillow, setuptools, skytemple-rust, tilequant }:
  
  buildPythonPackage rec {
    pname = "skytemple-files";
  
negative.code:     owner = "SkyTemple";
      repo = pname;
      rev = version;
      sha256 = "sha256-/S0otBujwO/IMiLKgA2o8wlD6xk1/DpwOAfemojV9NU=";
      fetchSubmodules = true;
    };
  
    patches = [
      # fix patching https://github.com/SkyTemple/skytemple-files/pull/128
      # merged, remove for next update
      (fetchpatch {
        url = "http://github.com/SkyTemple/skytemple-files/commit/71dd71e6abb7435405e30225e8a37592b990d692.patch";
        sha256 = "sha256-CSBaT+LVP9J0C1FlUCduTJroq9z2EAJG6lruvlHlQLI=";
      })
    ];
  
    postPatch = ''
      substituteInPlace skytemple_files/patch/arm_patcher.py \
        --replace "exec_name = os.getenv('SKYTEMPLE_ARMIPS_EXEC', f'{prefix}armips')" "exec_name = \"${armips}/bin/armips\""
    '';
  
    buildInputs = [ armips ];
  
    propagatedBuildInputs = [ appdirs explorerscript ndspy pillow setuptools skytemple-rust tilequant ];
  
  