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, ... }:
|
{ 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 ];
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in a new issue