anchor.diff:      libpng
       libpulseaudio
       libsamplerate
  -    libxml2
  +    libXdmcp
  +    openssl
  +    pcre
       portaudio
       SDL2
       soundtouch
       udev
  +    vulkan-loader
       wayland
       wxGTK
       zlib
     ];
  +
  +  # Wayland doesn't seem to work right now (crashes when booting a game).
  +  # Try removing `--prefix GDK_BACKEND : x11` on the next update.
  +  # (This may be solved when the project finshes migrating to Qt)
  +  preFixup = ''
  +    gappsWrapperArgs+=(
  +      --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
  +      --prefix GDK_BACKEND : x11
  +    )
  +  '';
   
     meta = with lib; {
       description = "Playstation 2 emulator";
  
positive.code: , libpng
  , libpulseaudio
  , libsamplerate
  , libxml2
  , perl
  , pkg-config
  , portaudio
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "pcsx2";
    version = "1.7.2731";
  
    src = fetchFromGitHub {
      owner = "PCSX2";
      repo = "pcsx2";
      fetchSubmodules = true;
      rev = "v${version}";
      hash = "sha256-b3cK3ly9J44YMy/cNprlDCSsu8+DrlhRSLXv5xMouWo=";
    };
  
    cmakeFlags = [
  