anchor.diff:          --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
           "$out/lib/plexmediaserver/$PlexExecutable"
         patchelf \
  -        --set-rpath "$plexLibraryPath:$out/lib/plexmediaserver" \
  +        --set-rpath "$libraryPath:$out/lib/plexmediaserver" \
           "$out/lib/plexmediaserver/$PlexExecutable"
       done
   
       for PlexLibrary in "''${PlexLibraryList[@]}" ; do
         patchelf \
  -        --set-rpath "$plexLibraryPath:$out/lib/plexmediaserver" \
  +        --set-rpath "$libraryPath:$out/lib/plexmediaserver" \
           "$out/lib/plexmediaserver/$PlexLibrary"
       done
     '' + ''
  
positive.code:         --set 'PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS' \
            '"''${PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS:-6}"' \
          --set 'PLEX_MEDIA_SERVER_TMPDIR' '"/tmp/plex"' \
          --prefix 'LD_LIBRARY_PATH' : "${plexLibraryPath}:$out/lib"
          # --run "
          #   if [ ! -d \"\$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/.skeleton\" ] ; then
          #     for db in 'com.plexapp.plugins.library.db' ; do
  
negative.code: 
    passthru = {
      inherit
        dataDir
        libraryPath;
    };
  
    meta = with lib; {
  