anchor.diff:      gst-python
       liblarch
       patool
  +    markdown
     ] ++ [
       steam-run
       xdg-utils
       pciutils
       cabextract
       wineWowPackages.minimal
  +    freetype
  +    p7zip
  +    gamemode # programs.gamemode.enable
     ];
   
     format = "other";
  
positive.code: { lib, fetchFromGitHub
  , meson, ninja, pkg-config, wrapGAppsHook
  , desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy
  , python3Packages, gettext
  , appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3
  , steam-run, xdg-utils, pciutils, cabextract, wineWowPackages
  }:
  
  python3Packages.buildPythonApplication rec {
    pname = "bottles";
    version = "2021.7.28-treviso-2";
  
    src = fetchFromGitHub {
      owner = "bottlesdevs";
      repo = pname;
      rev = version;
      sha256 = "0kvwcajm9izvkwfg7ir7bks39bpc665idwa8mc8d536ajyjriysn";
    };
  
    postPatch = ''
  
negative.code:   dontWrapGApps = true; # prevent double wrapping
  
    preConfigure = ''
      patchShebangs build-aux/meson/postinstall.py
      substituteInPlace src/backend/runner.py \
        --replace "{Paths.runners}" "${steam-run}/bin/steam-run {Paths.runners}"
    '';
  
    preFixup = ''
  