build Sayma satellite package

This commit is contained in:
Sebastien Bourdeauducq 2019-02-19 20:47:44 +08:00
parent ac3803b1cf
commit 110f968199
2 changed files with 12 additions and 5 deletions

View File

@ -7,7 +7,7 @@
"main": {
"enabled": 1,
"hidden": false,
"description": "Main ARTIQ packages",
"description": "Main ARTIQ packages and board support packages for HITL CI",
"nixexprinput": "nixScripts",
"nixexprpath": "main.nix",
"checkinterval": 300,
@ -24,7 +24,7 @@
"sinara-systems": {
"enabled": 1,
"hidden": false,
"description": "Board support artefacts for generic Sinara systems",
"description": "Board support packages for other Sinara systems",
"nixexprinput": "nixScripts",
"nixexprpath": "sinara-systems.nix",
"checkinterval": 86400,

View File

@ -23,8 +23,7 @@ let
sha256 = "$HASH";
leaveDotGit = true;
};
in
pkgs.lib.lists.foldr (variant: start:
generic-kasli = pkgs.lib.lists.foldr (variant: start:
let
json = builtins.toPath (src + "/\''${variant}.json");
boardBinaries = artiq-board {
@ -38,7 +37,15 @@ let
boardBinaries = boardBinaries;
inherit target variant;
};
}) {} variants
}) {} variants;
in
generic-kasli // {
artiq-board-sayma-satellite = artiq-board {
target = "sayma";
variant = "satellite";
buildCommand = "python -m artiq.gateware.targets.sayma_rtm && python -m artiq.gateware.targets.sayma_amc -V satellite";
};
}
EOF
'';
jobs = builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) (import generatedNix { inherit pkgs; });