anchor.diff:      sha256 = "sha256-TvVOjkUobYJD9itQYueELJX3wmecvEdCbJ0FinW2mL4=";
     };
   in
  +
   stdenv.mkDerivation rec {
     pname = "prismlauncher";
     version = "5.2";
  
positive.code: , ghc_filesystem
  , msaClientID ? ""
  , jdks ? [ jdk jdk8 ]
  ,
  }:
  let
    libnbtplusplus = fetchFromGitHub {
      owner = "PrismLauncher";
  
negative.code:     sha256 = "sha256-sKAhcbDoRbWf/DuwcBmDjb+VSMM0K2C33gu1K9AlPoQ=";
    };
  
    nativeBuildInputs = [ extra-cmake-modules cmake file jdk wrapQtAppsHook ];
    buildInputs = [
      qtbase
      qtsvg
      zlib
      quazip
      ghc_filesystem
      tomlplusplus
    ] ++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland;
  
    cmakeFlags = lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]
      ++ lib.optionals (lib.versionAtLeast qtbase.version "6") [ "-DLauncher_QT_VERSION_MAJOR=6" ];
  