overlays: patch prismlauncher to allow cracked accounts

This commit is contained in:
Guanran Wang 2023-10-05 18:03:37 +08:00
parent 2ef4f15dbd
commit d69188d887
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 24 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./nautilus.nix ./nautilus.nix
./sway.nix # broken ./sway.nix
./prismlauncher.nix
]; ];
} }

View file

@ -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=";
})
];
});
}
)
];
};
}