From a03fc6bb9c0ef845a8beb350cf8d9eafd9089425 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 19 Nov 2024 20:36:55 +0100 Subject: [PATCH] akkoma: Build ImageMagick with SVT-AV1 encoder --- config/services/akkoma/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/services/akkoma/default.nix b/config/services/akkoma/default.nix index 002e8c6..e3fec5a 100644 --- a/config/services/akkoma/default.nix +++ b/config/services/akkoma/default.nix @@ -13,7 +13,15 @@ services.akkoma = { enable = true; - extraPackages = with pkgs; [ exiftool ffmpeg-headless imagemagick ]; + extraPackages = let + imagemagick = pkgs.imagemagick.override { + libheif = pkgs.libheif.overrideAttrs (prevAttrs: { + buildInputs = prevAttrs.buildInputs or [ ] ++ [ pkgs.svt-av1 ]; + cmakeFlags = prevAttrs.cmakeFlags or [ ] ++ [ "-DWITH_SvtEnc=ON" ]; + }); + }; + in with pkgs; [ exiftool ffmpeg-headless imagemagick ]; + extraStatic."emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg; extraStatic."emoji/florp" = pkgs.runCommandNoCC "florp" {