anchor.diff:      libXrandr
       fontconfig
       glew
  +
  +    # Headless executable
  +    libGL
  +    SDL2
     ];
   
     patches = [
       ./appdir.patch # Ryujinx attempts to write to the nix store. This patch redirects it to "~/.config/Ryujinx" on Linux.
  +  ];
  +
  +  projectFile = "Ryujinx.sln";
  +  testProjectFile = "Ryujinx.Tests/Ryujinx.Tests.csproj";
  +  doCheck = true;
  +
  +  dotnetFlags = [
  +    "/p:ExtraDefineConstants=DISABLE_UPDATER"
  +  ];
  +
  +  executables = [
  +    "Ryujinx.Headless.SDL2"
  +    "Ryujinx.Ava"
  +    "Ryujinx"
     ];
   
     makeWrapperArgs = [
  
positive.code:     install -D ./ryujinx-mime.xml $out/share/mime/packages/ryujinx-mime.xml
      install -D ./ryujinx-logo.svg $out/share/icons/hicolor/scalable/apps/ryujinx.svg
  
      substituteInPlace $out/share/applications/ryujinx.desktop --replace \
        "Exec=Ryujinx" "Exec=$out/bin/Ryujinx"
  
      popd
    '';
  
negative.code: { lib
  , buildDotnetModule
  , fetchFromGitHub
  , wrapGAppsHook
  , libX11
  , libgdiplus
  , ffmpeg
  , openal
  , libsoundio
  , sndio
  , pulseaudio
  , gtk3
  , gdk-pixbuf
  , vulkan-loader
  , libICE
  , libSM
  