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:
parent
773ddcb209
commit
8206f68aea
1 changed files with 4 additions and 10 deletions
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue