diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-09-11T20·23+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-09-13T10·36+0000 |
commit | 8206f68aeaa701647211ba9b32e903e42364670c (patch) | |
tree | 41f4765da8f2d20939711d92d9603df6b0ebe109 | |
parent | 773ddcb20999a8a8b062b74fc13b846647044b8f (diff) |
refactor(eaglemode/avif): use build input parameter from buildPlugin r/8671
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
-rw-r--r-- | tools/eaglemode/plugins/avif/default.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tools/eaglemode/plugins/avif/default.nix b/tools/eaglemode/plugins/avif/default.nix index 5def86a6ed82..07577c685cc7 100644 --- a/tools/eaglemode/plugins/avif/default.nix +++ b/tools/eaglemode/plugins/avif/default.nix @@ -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 ]; +} |