2019-02-08 23:14:32 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
|
|
let
|
2019-02-09 10:24:22 +08:00
|
|
|
artiqPkgs = import ./default.nix { inherit pkgs; };
|
2019-02-11 19:27:50 +08:00
|
|
|
|
|
|
|
boards = [
|
|
|
|
{
|
|
|
|
target = "kasli";
|
|
|
|
variant = "tester";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
target = "kc705";
|
|
|
|
variant = "nist_clock";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
boardJobs = pkgs.lib.lists.foldr (board: start:
|
|
|
|
let
|
|
|
|
boardBinaries = import ./artiq-board.nix { inherit pkgs; } {
|
|
|
|
target = board.target;
|
|
|
|
variant = board.variant;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
start // {
|
|
|
|
"artiq-board-${board.target}-${board.variant}" = boardBinaries;
|
|
|
|
"conda-artiq-board-${board.target}-${board.variant}" = import ./conda-board.nix { inherit pkgs; } {
|
|
|
|
artiqSrc = ../.;
|
|
|
|
boardBinaries = boardBinaries;
|
|
|
|
target = board.target;
|
|
|
|
variant = board.variant;
|
|
|
|
};
|
|
|
|
}) {} boards;
|
|
|
|
|
|
|
|
jobs = {
|
2019-02-09 18:06:36 +08:00
|
|
|
conda-artiq = import ./conda-build.nix { inherit pkgs; } {
|
|
|
|
name = "conda-artiq";
|
|
|
|
src = ../.;
|
|
|
|
recipe = "conda/artiq";
|
|
|
|
};
|
2019-02-11 19:27:50 +08:00
|
|
|
} // boardJobs // artiqPkgs;
|
2019-02-08 23:14:32 +08:00
|
|
|
in
|
2019-02-13 20:50:08 +08:00
|
|
|
jobs // {
|
|
|
|
channel = pkgs.releaseTools.channel {
|
|
|
|
name = "main";
|
|
|
|
src = ./.;
|
|
|
|
constitutents = builtins.attrValues jobs;
|
|
|
|
};
|
|
|
|
}
|