Filter out packages by platform from crossSet
This commit is contained in:
parent
a13a4e66a6
commit
97e81b2f91
@ -107,7 +107,12 @@ let
|
|||||||
(meta.availableOn platform pkg);
|
(meta.availableOn platform pkg);
|
||||||
|
|
||||||
# For now only RISC-V
|
# For now only RISC-V
|
||||||
crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgsTopLevel; };
|
crossSet = genAttrs [ "riscv64" ] genCross;
|
||||||
|
|
||||||
|
genCross = platform:
|
||||||
|
# filter out packages by meta.platforms
|
||||||
|
filterAttrs (_: meta.availableOn final.pkgsCross.${platform}.stdenv.hostPlatform)
|
||||||
|
final.pkgsCross.${platform}.bsc.pkgsTopLevel;
|
||||||
|
|
||||||
buildList = name: paths:
|
buildList = name: paths:
|
||||||
final.runCommandLocal name { } ''
|
final.runCommandLocal name { } ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user