Add fjordlauncher
This commit is contained in:
parent
1f8014e99d
commit
a5f696d8e0
@ -1,8 +1,11 @@
|
|||||||
final: prev:
|
final: prev:
|
||||||
let
|
let
|
||||||
table = final.callPackage ./table.nix { };
|
table = final.callPackage ./table.nix { };
|
||||||
in {
|
in rec {
|
||||||
requireFile = { ... }@args: let
|
requireFile = { ... }@args: let
|
||||||
hash = args.hash or args.sha256 or args.sha1;
|
hash = args.hash or args.sha256 or args.sha1;
|
||||||
in table.${hash} or (prev.requireFile args);
|
in table.${hash} or (prev.requireFile args);
|
||||||
|
|
||||||
|
fjordlauncher-unwrapped = import ./pkgs/fjordlauncher/unwrapped.nix final prev;
|
||||||
|
fjordlauncher = final.prismlauncher.override { prismlauncher-unwrapped = fjordlauncher-unwrapped; };
|
||||||
}
|
}
|
||||||
|
19
pkgs/fjordlauncher/01-authlib-enforcement.patch
Normal file
19
pkgs/fjordlauncher/01-authlib-enforcement.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp
|
||||||
|
index 384af07fe..c3f3601df 100644
|
||||||
|
--- a/launcher/ui/pages/global/AccountListPage.cpp
|
||||||
|
+++ b/launcher/ui/pages/global/AccountListPage.cpp
|
||||||
|
@@ -135,12 +135,11 @@ void AccountListPage::listChanged()
|
||||||
|
void AccountListPage::on_actionAddAuthlibInjector_triggered()
|
||||||
|
{
|
||||||
|
if (!m_accounts->anyAccountIsValid()) {
|
||||||
|
- QMessageBox::warning(this, tr("Error"),
|
||||||
|
- tr("You must add a Microsoft account that owns Minecraft before you can add an account on a custom "
|
||||||
|
+ QMessageBox::warning(this, tr("Warning"),
|
||||||
|
+ tr("You should have a license for minecraft before adding an account on a custom "
|
||||||
|
"authentication server."
|
||||||
|
"<br><br>"
|
||||||
|
"If you have lost your account you can contact Microsoft for support."));
|
||||||
|
- return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MinecraftAccountPtr account = AuthlibInjectorLoginDialog::newAccount(
|
15
pkgs/fjordlauncher/unwrapped.nix
Normal file
15
pkgs/fjordlauncher/unwrapped.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
final: prev:
|
||||||
|
|
||||||
|
final.prismlauncher-unwrapped.overrideAttrs (oldAttrs: rec {
|
||||||
|
pname = "fjordlauncher-unwrapped";
|
||||||
|
version = "9.2.1";
|
||||||
|
|
||||||
|
src = final.fetchFromGitHub {
|
||||||
|
owner = "unmojang";
|
||||||
|
repo = "FjordLauncher";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-4imIXuVrrihoJVVAmEt7ZBhgqdDzzXsSo6zaMy0xV9o=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./01-authlib-enforcement.patch ];
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user