anchor.diff:    meta = with stdenv.lib; {
       homepage = "https://plex.tv/";
       license = licenses.unfree;
  -    platforms = platforms.linux;
  +    platforms = [ "x86_64-linux" "aarch64-linux" ];
       maintainers = with maintainers; [
         badmutex
         colemickens
  
positive.code: { stdenv
  , fetchurl
  , rpmextract
  }:
  
  # The raw package that fetches and extracts the Plex RPM. Override the source
  
negative.code:   pname = "plexmediaserver";
  
    # Fetch the source
    src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl {
      url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb";
      sha256 = "18zj4baa085gbgc0y5gx7gnwzl131xyk34m5xcipfvfb434y98cp";
    } else fetchurl {
      url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
      sha256 = "01rq2q6avjsvnns7jsd2a9vnmd4584fwdkp833gjgrrrqkf6h45y";
    };
  
    outputs = [ "out" "basedb" ];
  
    nativeBuildInputs = [ dpkg ];
  
    phases = [ "unpackPhase" "installPhase" "fixupPhase" "distPhase" ];
  
    unpackPhase = ''
      dpkg-deb -R $src .
    '';
  
    installPhase = ''
  