forked from M-Labs/nix-scripts
build device database templates
This commit is contained in:
parent
6ad2f9f19e
commit
de466e67cf
|
@ -15,6 +15,7 @@ let
|
||||||
target = "kasli";
|
target = "kasli";
|
||||||
variants = ["berkeley" "ist" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "ubirmingham" "unsw" "ustc" "wipm"];
|
variants = ["berkeley" "ist" "mitll2" "mitll" "nudt" "sysu" "tsinghua2" "tsinghua" "ubirmingham" "unsw" "ustc" "wipm"];
|
||||||
|
|
||||||
|
artiq = import <m-labs> { inherit pkgs; };
|
||||||
artiq-board = import <m-labs/artiq-board.nix> { inherit pkgs; };
|
artiq-board = import <m-labs/artiq-board.nix> { inherit pkgs; };
|
||||||
conda-artiq-board = import <m-labs/conda-artiq-board.nix> { inherit pkgs; };
|
conda-artiq-board = import <m-labs/conda-artiq-board.nix> { inherit pkgs; };
|
||||||
src = pkgs.fetchgit {
|
src = pkgs.fetchgit {
|
||||||
|
@ -37,6 +38,17 @@ let
|
||||||
boardBinaries = boardBinaries;
|
boardBinaries = boardBinaries;
|
||||||
inherit target variant;
|
inherit target variant;
|
||||||
};
|
};
|
||||||
|
"device-db-\''${target}-\''${variant}" = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "device-db-\''${target}-\''${variant}";
|
||||||
|
buildInputs = [ artiq.artiq ];
|
||||||
|
phases = [ "buildPhase" ];
|
||||||
|
buildPhase = "
|
||||||
|
mkdir \$out
|
||||||
|
artiq_ddb_template \''${json} -o \$out/device_db.py
|
||||||
|
mkdir \$out/nix-support
|
||||||
|
echo file device_db_template \$out/device_db.py >> \$out/nix-support/hydra-build-products
|
||||||
|
";
|
||||||
|
};
|
||||||
}) {} variants;
|
}) {} variants;
|
||||||
in
|
in
|
||||||
generic-kasli // {
|
generic-kasli // {
|
||||||
|
|
Loading…
Reference in New Issue