feat(tools/eaglemode/plugins/avif): AVIF image plugin

Animation not implemented.
https: //en.wikipedia.org/wiki/AVIF

Change-Id: I80f8c4132c4335b2e60ce7b70eb424457e50c73f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12428
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Emery Hemingway 2024-09-03 13:54:42 +03:00 committed by emery
parent e4714db2d5
commit 1c898f7ddc
5 changed files with 277 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{ depot, pkgs, ... }:
let
em = depot.tools.eaglemode;
emSrc = pkgs.srcOnly pkgs.em;
in
(em.buildPlugin {
name = "avif";
version = "canon";
src = ./.;
target = "PlAvif";
}).overrideAttrs
({ buildInputs ? [ ], nativeBuildInputs ? [ ], ... }: {
buildInputs = buildInputs ++ [ pkgs.libavif ];
nativeBuildInputs = nativeBuildInputs ++ [ pkgs.pkg-config ];
})