From 05cf0317fdf1e330f5a1799d55a5c5c1de1cc4ca Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 19 May 2023 22:27:09 +0200 Subject: [PATCH] Add prismlauncher patch --- flake.lock | 19 ++++++++++++++++--- flake.nix | 11 ++++++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index ca5c7a3..852b4de 100644 --- a/flake.lock +++ b/flake.lock @@ -154,11 +154,11 @@ }, "nur": { "locked": { - "lastModified": 1684525565, - "narHash": "sha256-mkvY7B1GaiPt56oDG1qgqp5WfHKVIOaDuBej7TjrGoU=", + "lastModified": 1684527793, + "narHash": "sha256-OqbLip5qIN5NJa3mY41xaQWyynUUtggqBWlYt2aXv24=", "owner": "nix-community", "repo": "NUR", - "rev": "86569578d5298fedcd6ccc6b18ecde0f67a9d0c7", + "rev": "8b186ad7a99398036bbc01b7ea67fc03f69fc69e", "type": "github" }, "original": { @@ -195,6 +195,18 @@ "type": "github" } }, + "prism-patch": { + "flake": false, + "locked": { + "narHash": "sha256-zsL8t7BrbzdVkr8ApYzQcYgRm3WWTcF2SQlAmr5ISBk=", + "type": "file", + "url": "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch" + }, + "original": { + "type": "file", + "url": "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch" + } + }, "prismlauncher": { "inputs": { "flake-compat": "flake-compat", @@ -225,6 +237,7 @@ "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nur": "nur", + "prism-patch": "prism-patch", "prismlauncher": "prismlauncher", "tela-icon-theme": "tela-icon-theme" } diff --git a/flake.nix b/flake.nix index e5bbf84..d065869 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,11 @@ }; nixos-hardware.url = github:NixOS/nixos-hardware; tela-icon-theme = { - url = "github:vinceliuice/Tela-icon-theme"; + url = github:vinceliuice/Tela-icon-theme; + flake = false; + }; + prism-patch = { + url = "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch"; flake = false; }; }; @@ -60,6 +64,11 @@ tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: { src = inputs.tela-icon-theme; }); + prismlauncher = super.prismlauncher.overrideAttrs (old: { + patches = (old.patches or []) ++ [ + inputs.prism-patch + ]; + }); }) ]; };