anchor.diff:      export HOME=$TMPDIR
   
       rm jellyfin_mpv_shim/win_utils.py
  +  '';
  +
  +  # disable the desktop client for now
  +  postPatch = ''
  +    substituteInPlace setup.py \
  +      --replace "'jellyfin-mpv-desktop=jellyfin_mpv_shim.mpv_shim:main_desktop'," ""
     '';
   
     propagatedBuildInputs = [
  
positive.code: 
  buildPythonApplication rec {
    pname = "jellyfin-mpv-shim";
    version = "1.4.2";
  
    src = fetchFromGitHub {
      owner = "iwalton3";
      repo = pname;
      rev = "v${version}";
      sha256 = "1cnii5wj0pgqg3dqk5cm6slpbs3730x8ippps4cjbsxcsrmqjpx6";
      fetchSubmodules = true; # needed for display_mirror css file
    };
  
  
negative.code: 
    meta = with stdenv.lib; {
      homepage = "https://github.com/iwalton3/jellyfin-mpv-shim";
      description = "Allows casting of videos to MPV via the jellyfin mobile and web app";
      license = licenses.gpl3;
      maintainers = with maintainers; [ jojosch ];
    };
  