artiq/nix/release.nix

41 lines
998 B
Nix
Raw Normal View History

{ 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;
in
jobs