mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-12 21:26:37 +08:00
41 lines
998 B
Nix
41 lines
998 B
Nix
{ pkgs ? import <nixpkgs> {}}:
|
|
let
|
|
artiqPkgs = import ./default.nix { inherit pkgs; };
|
|
|
|
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 = {
|
|
conda-artiq = import ./conda-build.nix { inherit pkgs; } {
|
|
name = "conda-artiq";
|
|
src = ../.;
|
|
recipe = "conda/artiq";
|
|
};
|
|
} // boardJobs // artiqPkgs;
|
|
in
|
|
jobs
|