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, ... }: { depot, pkgs, ... }:
let depot.tools.eaglemode.buildPlugin {
em = depot.tools.eaglemode;
emSrc = pkgs.srcOnly pkgs.em;
in
(em.buildPlugin {
name = "avif"; name = "avif";
version = "canon"; version = "canon";
src = ./.; src = ./.;
target = "PlAvif"; target = "PlAvif";
}).overrideAttrs extraBuildInputs = [ pkgs.libavif ];
({ buildInputs ? [ ], nativeBuildInputs ? [ ], ... }: { extraNativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = buildInputs ++ [ pkgs.libavif ]; }
nativeBuildInputs = nativeBuildInputs ++ [ pkgs.pkg-config ];
})