2019-02-15 23:18:40 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
2019-02-15 23:06:00 +08:00
|
|
|
|
2019-02-15 23:39:57 +08:00
|
|
|
let
|
2019-02-15 23:50:44 +08:00
|
|
|
artiq-board = import <mainChannel/artiq-board.nix> { inherit pkgs; };
|
|
|
|
conda-artiq-board = import <mainChannel/conda-artiq-board.nix> { inherit pkgs; };
|
2019-02-15 23:39:57 +08:00
|
|
|
|
2019-02-15 23:50:44 +08:00
|
|
|
target = "kasli";
|
2019-02-15 23:39:57 +08:00
|
|
|
|
2019-02-15 23:50:44 +08:00
|
|
|
variants = ["berkeley" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "unsw" "ustc" "wipm"];
|
|
|
|
sinaraSystemsPkgs = pkgs.lib.lists.foldr (variant: start:
|
|
|
|
let
|
|
|
|
json = <sinaraSystemsSrc> + "/${variant}.json";
|
2019-02-15 23:51:53 +08:00
|
|
|
boardBinaries = artiq-board {
|
2019-02-15 23:50:44 +08:00
|
|
|
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;
|
|
|
|
jobs = builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) sinaraSystemsPkgs;
|
2019-02-15 23:39:57 +08:00
|
|
|
in
|
2019-02-15 23:50:44 +08:00
|
|
|
jobs
|