mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-03 14:24:07 +02:00
move away from deprecated crossLists
This commit is contained in:
parent
66e3dc8930
commit
64704717c0
2 changed files with 19 additions and 10 deletions
|
|
@ -5,14 +5,22 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) crossLists;
|
||||
inherit (lib) mapCartesianProduct;
|
||||
platformVersions = ["0D1" "0D2" "0D3" "0D4" "0D5" "0D6" "0D7" "1D0" "1D1" "1D2" "1D3" "1D4"];
|
||||
bitstreams = ["analyzer" "selftest" "facedancer"];
|
||||
gatewares = crossLists (platform: bitstream: (cynthion-gateware-single.override {
|
||||
inherit bitstream;
|
||||
platform = "CynthionPlatformRev${platform}";
|
||||
})) [platformVersions bitstreams];
|
||||
in symlinkJoin {
|
||||
name = "cynthion-gateware-${cynthion-unwrapped.version}";
|
||||
paths = gatewares;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
bitstream ? null,
|
||||
platform ? null,
|
||||
...
|
||||
}: stdenvNoCC.mkDerivation {
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "cynthion-gateware-${bitstream}";
|
||||
version = "${cynthion-unwrapped.version}-${platform}";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue