anchor.diff:        --replace 'scanJavaDir("/usr/lib32/jvm")' 'javas.append("${jdk8}/lib/openjdk/bin/java")'
     '';
   
  -  cmakeFlags = [ "-DLauncher_LAYOUT=lin-system" ] ++
  +  cmakeFlags = [ "-DLauncher_PORTABLE=0" ] ++
                  lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ];
   
     dontWrapQtApps = true;
  
positive.code:       libXxf86vm
        libpulseaudio
        libGL
      ];
    in ''
      # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
  
negative.code: , libpulseaudio
  , qtbase
  , libGL
  , glfw
  , openal
  , msaClientID ? ""
  }:
  
  mkDerivation rec {
    pname = "polymc";
    version = "1.1.0";
  
    src = fetchFromGitHub {
      owner = "PolyMC";
      repo = "PolyMC";
      rev = version;
      sha256 = "sha256-p5vbpNZI/JiQJclEo/Pu/46qVul+3DAzaoow8jabHrI=";
      fetchSubmodules = true;
    };
  
  