anchor.diff:    dontConfigure = true;
   
     installPhase = ''
  +    runHook preInstall
       mkdir -p $out/{bin,opt/${basename},share}
   
       # Install all files, remove unnecessary ones
       cp -a . $out/opt/${basename}/
       rm -r $out/opt/${basename}/{{add,remove}-menuitem.sh,credits.html,icons/}
  +    ln -s "$out/opt/${basename}/${basename}" $out/bin/
  +    cp -r "${desktopItem}/share/applications" $out/share/
  +    runHook postInstall
  +  '';
   
  -    wrapProgram $out/opt/${basename}/${basename} --add-flags "--no-version-check" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
  -
  -    ln -s "$out/opt/${basename}/${basename}" $out/bin/
  -    ln -s "${desktopItem}/share/applications" $out/share/
  +  preFixup = ''
  +    gappsWrapperArgs+=(
  +      --add-flags "--no-version-check" \
  +      --prefix LD_LIBRARY_PATH : ${runtimeLibs} \
  +      --prefix PATH : ${runtimeBins}
  +    )
     '';
   
     desktopItem = makeDesktopItem {
  
positive.code: let
    basename = "streamlink-twitch-gui";
    runtimeLibs = lib.makeLibraryPath [ libudev0-shim ];
    arch =
      if stdenv.hostPlatform.system == "x86_64-linux"
      then
  
negative.code:     description = "Twitch.tv browser for Streamlink";
      longDescription = "Browse Twitch.tv and watch streams in your videoplayer of choice";
      homepage = "https://streamlink.github.io/streamlink-twitch-gui/";
      downloadPage = "https://github.com/streamlink/streamlink-twitch-gui/releases";
      license = licenses.mit;
      maintainers = with maintainers; [ rileyinman ];
      platforms = [ "x86_64-linux" "i686-linux" ];
  