mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-03 14:24:07 +02:00
26 lines
657 B
Nix
26 lines
657 B
Nix
{
|
|
symlinkJoin,
|
|
cynthion-gateware-single,
|
|
cynthion-unwrapped,
|
|
lib,
|
|
platformVersions ? ["0D1" "0D2" "0D3" "0D4" "0D5" "0D6" "0D7" "1D0" "1D1" "1D2" "1D3" "1D4"],
|
|
bitstreams ? ["analyzer" "selftest" "facedancer"],
|
|
...
|
|
}: let
|
|
inherit (lib) mapCartesianProduct;
|
|
gatewares =
|
|
mapCartesianProduct ({
|
|
platform,
|
|
bitstream,
|
|
}: (cynthion-gateware-single.override {
|
|
inherit bitstream;
|
|
platform = "CynthionPlatformRev${platform}";
|
|
})) {
|
|
platform = platformVersions;
|
|
bitstream = bitstreams;
|
|
};
|
|
in
|
|
symlinkJoin {
|
|
name = "cynthion-gateware-${cynthion-unwrapped.version}";
|
|
paths = gatewares;
|
|
}
|