anchor.diff:      done
   
       for PlexLibrary in "''${PlexLibraryList[@]}" ; do
  -      patchelf \
  -        --set-rpath "$libraryPath:$out/lib/plexmediaserver" \
  -        "$out/lib/plexmediaserver/$PlexLibrary"
  +      if [ -n "$PlexLibrary" ] ; then
  +        patchelf \
  +          --set-rpath "$libraryPath:$out/lib/plexmediaserver" \
  +          "$out/lib/plexmediaserver/$(basename "$PlexLibrary")"
  +      fi
       done
     '' + ''
       for PlexExecutable in "''${PlexExecutableList[@]}" ; do
  
positive.code:     done
  
      for PlexLibrary in "''${PlexLibraryList[@]}" ; do
        install -D -m 644 -v "usr/lib/plexmediaserver/$PlexLibrary" \
          "$out/lib/plexmediaserver/$PlexLibrary"
      done
  
      install -D -m 644 -v 'usr/lib/plexmediaserver/plex-archive-keyring.gpg' \
  
negative.code:       ['Plex Transcoder']='plex-transcoder'
      )
  
      mapfile -t PlexLibraryList < <(
        find 'usr/lib/plexmediaserver' -maxdepth 1 -name '*.so*'
      )
      for PlexLibrary in "''${PlexLibraryList[@]}" ; do
        PlexLibraryBase="$(basename "$PlexLibrary")"
        mapfile -d: -t InputLibraryList < <(echo ${libraryPath})
        for InputLibrary in "''${InputLibraryList[@]}" ; do
          if [ -f "$InputLibrary/$PlexLibraryBase" ] ; then
            PlexLibraryList=("''${PlexLibraryList[@]//$PlexLibrary}")
          fi
        done
      done
    '';
  
    buildPhase = ":";
  