first theoretically working sinara-systems jobset attempt

This commit is contained in:
Sebastien Bourdeauducq 2019-02-15 23:50:44 +08:00
parent 6a97921d34
commit b265305f3e

View File

@ -1,29 +1,27 @@
{ pkgs ? import <nixpkgs> {}}: { pkgs ? import <nixpkgs> {}}:
let let
mainChannel = import <mainChannel>; artiq-board = import <mainChannel/artiq-board.nix> { inherit pkgs; };
#artiq-board = import <mainChannel/artiq-board.nix> { inherit pkgs; }; conda-artiq-board = import <mainChannel/conda-artiq-board.nix> { inherit pkgs; };
#conda-artiq-board = import <mainChannel/conda-artiq-board.nix> { inherit pkgs; };
#target = "kasli"; target = "kasli";
#variants = ["berkeley" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "unsw" "ustc" "wipm"]; variants = ["berkeley" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "unsw" "ustc" "wipm"];
#jobs = pkgs.lib.lists.foldr (variant: start: sinaraSystemsPkgs = pkgs.lib.lists.foldr (variant: start:
# let let
# json = ../. + "/${variant}.json"; json = <sinaraSystemsSrc> + "/${variant}.json";
# boardBinaries = conda-artiq-board { boardBinaries = conda-artiq-board {
# inherit target variant; inherit target variant;
# buildCommand = "python -m artiq.gateware.targets.kasli_generic ${json}"; buildCommand = "python -m artiq.gateware.targets.kasli_generic ${json}";
# }; };
# in in
# start // { start // {
# "artiq-board-${target}-${variant}" = boardBinaries; "artiq-board-${target}-${variant}" = boardBinaries;
# "conda-artiq-board-${target}-${variant}" = conda-artiq-board { "conda-artiq-board-${target}-${variant}" = conda-artiq-board {
# boardBinaries = boardBinaries; boardBinaries = boardBinaries;
# inherit target variant; inherit target variant;
# }; };
#}) {} variants; }) {} variants;
jobs = builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) sinaraSystemsPkgs;
in in
{ jobs
foo = pkgs.runCommand "xxxxabcd" { } "echo ${mainChannel} > $out";
}