From f0122c251abeb2fd5579e0e19c4b20721a35b4f4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 21 Dec 2024 20:29:58 +0100 Subject: fix(system/services/mastodon): Update char patch to v4.3 --- system/services/mastodon/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'system/services/mastodon/default.nix') diff --git a/system/services/mastodon/default.nix b/system/services/mastodon/default.nix index 8e2c174..f613bf3 100644 --- a/system/services/mastodon/default.nix +++ b/system/services/mastodon/default.nix @@ -4,17 +4,19 @@ ... }: let emailAddress = "mastodon@vhack.eu"; + applyPatches = pkg: + pkg.overrideAttrs (attrs: { + patches = (attrs.patches or []) ++ [./patches/0001-feat-treewide-Increase-character-limit-to-5000-in-me.patch]; + }); in { services.mastodon = { enable = true; - package = pkgs.mastodon.overrideAttrs (attrs: { - patches = (attrs.patches or []) ++ [./patches/mastodon_v4.2.1-maxchar-5000.patch]; - }); + package = applyPatches pkgs.mastodon; # Unstable Mastodon package, used if - #security updates aren't backported. - #package = pkgs-unstable.mastodon; + # security updates aren't backported. + #package = applyPatches pkgs-unstable.mastodon; localDomain = "vhack.eu"; smtp = { -- cgit 1.4.1