2019-02-15 23:06:00 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
|
|
|
|
|
|
let
|
2019-02-15 23:11:05 +08:00
|
|
|
mainBuild = import <mainBuild>;
|
|
|
|
#artiq-board = import <mainChannel/artiq-board.nix> { inherit pkgs; };
|
|
|
|
#conda-artiq-board = import <mainChannel/conda-artiq-board.nix> { inherit pkgs; };
|
2019-02-15 23:06:00 +08:00
|
|
|
|
|
|
|
target = "kasli";
|
|
|
|
|
|
|
|
variants = ["berkeley" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "unsw" "ustc" "wipm"];
|
|
|
|
jobs = pkgs.lib.lists.foldr (variant: start:
|
|
|
|
let
|
|
|
|
json = ../. + "/${variant}.json";
|
|
|
|
boardBinaries = artiq-board {
|
|
|
|
inherit target variant;
|
|
|
|
buildCommand = "python -m artiq.gateware.targets.kasli_generic ${json}";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
start // {
|
|
|
|
"artiq-board-${target}-${variant}" = boardBinaries;
|
|
|
|
"conda-artiq-board-${target}-${variant}" = conda-artiq-board {
|
|
|
|
boardBinaries = boardBinaries;
|
|
|
|
inherit target variant;
|
|
|
|
};
|
|
|
|
}) {} variants;
|
|
|
|
in
|
2019-02-15 23:12:51 +08:00
|
|
|
pkgs.runCommand "xxxxabcd" { } "echo ${mainBuild} > $out"
|