files: allow explicitly specifying packagesArch

This commit is contained in:
Astro 2022-04-29 21:29:29 +02:00
parent 2087eb5f0c
commit 2717976254
1 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,8 @@
, sha256
# Checksum of a feed's `Packages` file
, feedsSha256
# Manually specify packages' arch for OpenWRT<19 releases without profiles.json
, packagesArch
}:
with pkgs;
let
@ -108,7 +110,9 @@ let
)
else null;
arch = profiles.arch_packages;
arch = if packagesArch == null
then profiles.arch_packages
else packagesArch;
in {
inherit variantFiles variantPackages feedsFiles feedsPackages;