From d69188d887c42b88732232c09273417f1179fabf Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 5 Oct 2023 18:03:37 +0800 Subject: [PATCH] overlays: patch prismlauncher to allow cracked accounts --- nixos/packages/overlays/default.nix | 3 ++- nixos/packages/overlays/prismlauncher.nix | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 nixos/packages/overlays/prismlauncher.nix diff --git a/nixos/packages/overlays/default.nix b/nixos/packages/overlays/default.nix index c2f0f15..7fc7ef3 100644 --- a/nixos/packages/overlays/default.nix +++ b/nixos/packages/overlays/default.nix @@ -3,6 +3,7 @@ { imports = [ ./nautilus.nix - ./sway.nix # broken + ./sway.nix + ./prismlauncher.nix ]; } \ No newline at end of file diff --git a/nixos/packages/overlays/prismlauncher.nix b/nixos/packages/overlays/prismlauncher.nix new file mode 100644 index 0000000..47ee61d --- /dev/null +++ b/nixos/packages/overlays/prismlauncher.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + nixpkgs = { + overlays = [ + (final: prev: + { + prismlauncher = prev.prismlauncher.overrideAttrs (old: { + # Offline mode for Prism Launcher + # .patch file from some Misterio77's nix-config repo + patches = (old.patches or []) ++ [ + (prev.fetchpatch { + url = "https://raw.githubusercontent.com/Misterio77/nix-config/main/overlays/offline-mode-prism-launcher.diff"; + hash = "sha256-vMcAvhD0Ms4Tvwpzs/YfORc8ki7MNMurdJJ/yswfxFM="; + }) + ]; + }); + } + ) + ]; + }; +} \ No newline at end of file