refactor(eaglemode/avif): use build input parameter from buildPlugin

This somewhat condenses the derivation, which is always nice.

Change-Id: I4e2dd81620b54ab000898337007ffcea509a054b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12468
Reviewed-by: emery <emery@dmz.rs>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2024-09-11 23:23:23 +03:00 committed by clbot
parent 773ddcb209
commit 8206f68aea

View file

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