forked from M-Labs/artiq
1
0
Fork 0
artiq/nix/release.nix

47 lines
1.1 KiB
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
2019-02-13 20:50:08 +08:00
jobs // {
channel = pkgs.releaseTools.channel {
name = "main";
src = ./.;
2019-02-13 20:52:33 +08:00
constituents = builtins.attrValues jobs;
2019-02-13 20:50:08 +08:00
};
}